[Python-checkins] cpython: Relax tests to fix buildbot failure
antoine.pitrou
python-checkins at python.org
Wed Feb 8 23:51:49 CET 2012
http://hg.python.org/cpython/rev/5fe90c877e85
changeset: 74836:5fe90c877e85
user: Antoine Pitrou <solipsis at pitrou.net>
date: Wed Feb 08 23:48:59 2012 +0100
summary:
Relax tests to fix buildbot failure
files:
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
--- a/Lib/test/test_os.py
+++ b/Lib/test/test_os.py
@@ -1857,8 +1857,8 @@
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
--- a/Lib/test/test_shutil.py
+++ b/Lib/test/test_shutil.py
@@ -1276,8 +1276,8 @@
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"
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list