summaryrefslogtreecommitdiff
path: root/Lib/test/test_mailbox.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_mailbox.py')
-rw-r--r--Lib/test/test_mailbox.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_mailbox.py b/Lib/test/test_mailbox.py
index e28d721f0a..382a42e774 100644
--- a/Lib/test/test_mailbox.py
+++ b/Lib/test/test_mailbox.py
@@ -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