mirror of
https://github.com/python/cpython.git
synced 2025-12-10 02:50:09 +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
|
|
@ -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")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue