mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Get rig of EnvironmentError (#16705)
This commit is contained in:
parent
6eda46de99
commit
3438fa496d
16 changed files with 34 additions and 35 deletions
|
@ -285,7 +285,7 @@ class OtherFileTests(unittest.TestCase):
|
|||
if sys.platform != "win32":
|
||||
try:
|
||||
f = _FileIO("/dev/tty", "a")
|
||||
except EnvironmentError:
|
||||
except OSError:
|
||||
# When run in a cron job there just aren't any
|
||||
# ttys, so skip the test. This also handles other
|
||||
# OS'es that don't support /dev/tty.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue