Kaydet (Commit) cfade362 authored tarafından Antoine Pitrou's avatar Antoine Pitrou

Relax tests to fix buildbot failure

üst bcf2b59f
......@@ -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"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment