From cfade36227ce9d986da988c14dd80e21cf485400 Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Wed, 8 Feb 2012 23:48:59 +0100 Subject: [PATCH] Relax tests to fix buildbot failure --- Lib/test/test_os.py | 4 ++-- Lib/test/test_shutil.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index 8dd745a9c78..b9eb2902b8a 100644 --- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py @@ -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 diff --git a/Lib/test/test_shutil.py b/Lib/test/test_shutil.py index 4d0ef29eb6a..6c9515e409f 100644 --- a/Lib/test/test_shutil.py +++ b/Lib/test/test_shutil.py @@ -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"