mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
Relax tests to fix buildbot failure
This commit is contained in:
parent
bcf2b59fb5
commit
cfade36227
2 changed files with 4 additions and 4 deletions
|
@ -1857,8 +1857,8 @@ class TermsizeTests(unittest.TestCase):
|
||||||
self.skipTest("failed to query terminal size")
|
self.skipTest("failed to query terminal size")
|
||||||
raise
|
raise
|
||||||
|
|
||||||
self.assertGreater(size.columns, 0)
|
self.assertGreaterEqual(size.columns, 0)
|
||||||
self.assertGreater(size.lines, 0)
|
self.assertGreaterEqual(size.lines, 0)
|
||||||
|
|
||||||
def test_stty_match(self):
|
def test_stty_match(self):
|
||||||
"""Check if stty returns the same results
|
"""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.
|
terminal, so let's check if it returns something sensible instead.
|
||||||
"""
|
"""
|
||||||
size = shutil.get_terminal_size()
|
size = shutil.get_terminal_size()
|
||||||
self.assertGreater(size.columns, 0)
|
self.assertGreaterEqual(size.columns, 0)
|
||||||
self.assertGreater(size.lines, 0)
|
self.assertGreaterEqual(size.lines, 0)
|
||||||
|
|
||||||
def test_os_environ_first(self):
|
def test_os_environ_first(self):
|
||||||
"Check if environment variables have precedence"
|
"Check if environment variables have precedence"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue