diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2012-02-08 22:48:59 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2012-02-08 22:48:59 (GMT) |
commit | cfade36227ce9d986da988c14dd80e21cf485400 (patch) | |
tree | 23114394ecf7c3b933b20fc9d45cd53b0d9416df /Lib | |
parent | bcf2b59fb5f18c09a26da3e9b60a37367f2a28ba (diff) | |
download | cpython-cfade36227ce9d986da988c14dd80e21cf485400.zip cpython-cfade36227ce9d986da988c14dd80e21cf485400.tar.gz cpython-cfade36227ce9d986da988c14dd80e21cf485400.tar.bz2 |
Relax tests to fix buildbot failure
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_os.py | 4 | ||||
-rw-r--r-- | 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 8dd745a..b9eb290 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 4d0ef29..6c9515e 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" |