Relax tests to fix buildbot failure

This commit is contained in:
Antoine Pitrou 2012-02-08 23:48:59 +01:00
parent bcf2b59fb5
commit cfade36227
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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"