mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +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
|
@ -244,16 +244,16 @@ class ExceptionTests(unittest.TestCase):
|
|||
{'args' : ('foo', 1)}),
|
||||
(SystemExit, ('foo',),
|
||||
{'args' : ('foo',), 'code' : 'foo'}),
|
||||
(IOError, ('foo',),
|
||||
(OSError, ('foo',),
|
||||
{'args' : ('foo',), 'filename' : None,
|
||||
'errno' : None, 'strerror' : None}),
|
||||
(IOError, ('foo', 'bar'),
|
||||
(OSError, ('foo', 'bar'),
|
||||
{'args' : ('foo', 'bar'), 'filename' : None,
|
||||
'errno' : 'foo', 'strerror' : 'bar'}),
|
||||
(IOError, ('foo', 'bar', 'baz'),
|
||||
(OSError, ('foo', 'bar', 'baz'),
|
||||
{'args' : ('foo', 'bar'), 'filename' : 'baz',
|
||||
'errno' : 'foo', 'strerror' : 'bar'}),
|
||||
(IOError, ('foo', 'bar', 'baz', 'quux'),
|
||||
(OSError, ('foo', 'bar', 'baz', 'quux'),
|
||||
{'args' : ('foo', 'bar', 'baz', 'quux')}),
|
||||
(OSError, ('errnoStr', 'strErrorStr', 'filenameStr'),
|
||||
{'args' : ('errnoStr', 'strErrorStr'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue