]> granicus.if.org Git - python/commitdiff
Relax tests to fix buildbot failure
authorAntoine Pitrou <solipsis@pitrou.net>
Wed, 8 Feb 2012 22:48:59 +0000 (23:48 +0100)
committerAntoine Pitrou <solipsis@pitrou.net>
Wed, 8 Feb 2012 22:48:59 +0000 (23:48 +0100)
Lib/test/test_os.py
Lib/test/test_shutil.py

index 8dd745a9c781c29162309c733c788e45ca319506..b9eb2902b8aacd25e740bdc72497b409d7f13c98 100644 (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
index 4d0ef29eb6a26e586ee10eff7580a0f18f10b72f..6c9515e409fe31c0a73bb15c70c071981461cb9e 100644 (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"