mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
Replace IOError with OSError (#16715)
This commit is contained in:
parent
16bdd4120d
commit
f7a17b48d7
121 changed files with 381 additions and 386 deletions
|
@ -275,8 +275,8 @@ class FileInputTests(unittest.TestCase):
|
|||
try:
|
||||
t1 = writeTmp(1, [""])
|
||||
with FileInput(files=t1) as fi:
|
||||
raise IOError
|
||||
except IOError:
|
||||
raise OSError
|
||||
except OSError:
|
||||
self.assertEqual(fi._files, ())
|
||||
finally:
|
||||
remove_tempfiles(t1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue