mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Issue #28662: Catch PermissionError in tests when spawning a non existent program
This commit is contained in:
parent
8bf43e6d0b
commit
38c8b7d292
3 changed files with 6 additions and 4 deletions
|
@ -1869,7 +1869,8 @@ class TermsizeTests(unittest.TestCase):
|
|||
"""
|
||||
try:
|
||||
size = subprocess.check_output(['stty', 'size']).decode().split()
|
||||
except (FileNotFoundError, subprocess.CalledProcessError):
|
||||
except (FileNotFoundError, PermissionError,
|
||||
subprocess.CalledProcessError):
|
||||
self.skipTest("stty invocation failed")
|
||||
expected = (int(size[1]), int(size[0])) # reversed order
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue