Commit ca956e2e authored by Guido van Rossum's avatar Guido van Rossum

When catching errors from os.rmdir(), test for os.error, not IOError!

parent fe010e41
...@@ -21,8 +21,8 @@ try: ...@@ -21,8 +21,8 @@ try:
finally: finally:
try: os.rmdir(newdir) try: os.rmdir(newdir)
except IOError: pass except os.error: pass
try: os.rmdir(curdir) try: os.rmdir(curdir)
except IOError: pass except os.error: pass
try: os.rmdir(test_support.TESTFN) try: os.rmdir(test_support.TESTFN)
except IOError: pass except os.error: pass
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment