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:
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
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