mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +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
|
@ -2825,7 +2825,7 @@ class MiscIOTest(unittest.TestCase):
|
|||
for fd in fds:
|
||||
try:
|
||||
os.close(fd)
|
||||
except EnvironmentError as e:
|
||||
except OSError as e:
|
||||
if e.errno != errno.EBADF:
|
||||
raise
|
||||
self.addCleanup(cleanup_fds)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue