diff options
author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-12-17 21:35:18 (GMT) |
---|---|---|
committer | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-12-17 21:35:18 (GMT) |
commit | 3438fa496db50ef3cafcfdb3243f2f769bc12ebe (patch) | |
tree | 8c480821ca46d7d91d4f3ba8c8343afe389d7208 /Lib/test/test_exceptions.py | |
parent | 6eda46de99189812e6982f568bbe941346918964 (diff) | |
download | cpython-3438fa496db50ef3cafcfdb3243f2f769bc12ebe.zip cpython-3438fa496db50ef3cafcfdb3243f2f769bc12ebe.tar.gz cpython-3438fa496db50ef3cafcfdb3243f2f769bc12ebe.tar.bz2 |
Get rig of EnvironmentError (#16705)
Diffstat (limited to 'Lib/test/test_exceptions.py')
-rw-r--r-- | Lib/test/test_exceptions.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py index e62ed3c..6fa1f5b 100644 --- a/Lib/test/test_exceptions.py +++ b/Lib/test/test_exceptions.py @@ -255,11 +255,11 @@ class ExceptionTests(unittest.TestCase): 'errno' : 'foo', 'strerror' : 'bar'}), (IOError, ('foo', 'bar', 'baz', 'quux'), {'args' : ('foo', 'bar', 'baz', 'quux')}), - (EnvironmentError, ('errnoStr', 'strErrorStr', 'filenameStr'), + (OSError, ('errnoStr', 'strErrorStr', 'filenameStr'), {'args' : ('errnoStr', 'strErrorStr'), 'strerror' : 'strErrorStr', 'errno' : 'errnoStr', 'filename' : 'filenameStr'}), - (EnvironmentError, (1, 'strErrorStr', 'filenameStr'), + (OSError, (1, 'strErrorStr', 'filenameStr'), {'args' : (1, 'strErrorStr'), 'errno' : 1, 'strerror' : 'strErrorStr', 'filename' : 'filenameStr'}), (SyntaxError, (), {'msg' : None, 'text' : None, @@ -409,7 +409,7 @@ class ExceptionTests(unittest.TestCase): self.assertIsNone(e.__context__) self.assertIsNone(e.__cause__) - class MyException(EnvironmentError): + class MyException(OSError): pass e = MyException() |