mirror of https://github.com/python/cpython
Relax tests to fix buildbot failure
This commit is contained in:
parent
bcf2b59fb5
commit
cfade36227
|
@ -1857,8 +1857,8 @@ class TermsizeTests(unittest.TestCase):
|
|||
self.skipTest("failed to query terminal size")
|
||||
raise
|
||||
|
||||
self.assertGreater(size.columns, 0)
|
||||
self.assertGreater(size.lines, 0)
|
||||
self.assertGreaterEqual(size.columns, 0)
|
||||
self.assertGreaterEqual(size.lines, 0)
|
||||
|
||||
def test_stty_match(self):
|
||||
"""Check if stty returns the same results
|
||||
|
|
|
@ -1276,8 +1276,8 @@ class TermsizeTests(unittest.TestCase):
|
|||
terminal, so let's check if it returns something sensible instead.
|
||||
"""
|
||||
size = shutil.get_terminal_size()
|
||||
self.assertGreater(size.columns, 0)
|
||||
self.assertGreater(size.lines, 0)
|
||||
self.assertGreaterEqual(size.columns, 0)
|
||||
self.assertGreaterEqual(size.lines, 0)
|
||||
|
||||
def test_os_environ_first(self):
|
||||
"Check if environment variables have precedence"
|
||||
|
|
Loading…
Reference in New Issue