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_tarfile.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_tarfile.py')
-rw-r--r-- | Lib/test/test_tarfile.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_tarfile.py b/Lib/test/test_tarfile.py index c7bf774..8bbf4ae 100644 --- a/Lib/test/test_tarfile.py +++ b/Lib/test/test_tarfile.py @@ -342,7 +342,7 @@ class MiscReadTest(CommonReadTest): tar.extract("ustar/regtype", TEMPDIR) try: tar.extract("ustar/lnktype", TEMPDIR) - except EnvironmentError as e: + except OSError as e: if e.errno == errno.ENOENT: self.fail("hardlink not extracted properly") @@ -352,7 +352,7 @@ class MiscReadTest(CommonReadTest): try: tar.extract("ustar/symtype", TEMPDIR) - except EnvironmentError as e: + except OSError as e: if e.errno == errno.ENOENT: self.fail("symlink not extracted properly") |