mirror of https://github.com/python/cpython
bpo-40165: Suppress stderr when checking if test_stty_match should be skipped (GH-19325)
This commit is contained in:
parent
cae2275949
commit
d5a980a607
|
@ -3485,7 +3485,11 @@ class TermsizeTests(unittest.TestCase):
|
|||
should work too.
|
||||
"""
|
||||
try:
|
||||
size = subprocess.check_output(['stty', 'size']).decode().split()
|
||||
size = (
|
||||
subprocess.check_output(
|
||||
["stty", "size"], stderr=subprocess.DEVNULL, text=True
|
||||
).split()
|
||||
)
|
||||
except (FileNotFoundError, subprocess.CalledProcessError,
|
||||
PermissionError):
|
||||
self.skipTest("stty invocation failed")
|
||||
|
|
Loading…
Reference in New Issue