mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
When catching errors from os.rmdir(), test for os.error, not IOError!
This commit is contained in:
parent
fe010e41cc
commit
ca956e2e47
1 changed files with 3 additions and 3 deletions
|
@ -21,8 +21,8 @@ try:
|
|||
|
||||
finally:
|
||||
try: os.rmdir(newdir)
|
||||
except IOError: pass
|
||||
except os.error: pass
|
||||
try: os.rmdir(curdir)
|
||||
except IOError: pass
|
||||
except os.error: pass
|
||||
try: os.rmdir(test_support.TESTFN)
|
||||
except IOError: pass
|
||||
except os.error: pass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue