summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-03-02 05:46:17 (GMT)
committerGuido van Rossum <guido@python.org>2001-03-02 05:46:17 (GMT)
commitca956e2e47f6b2bcaeed824a500cac269db750ba (patch)
tree6d1a4a0671d76ff2c35dfe5baf2d782f503251b0 /Lib
parentfe010e41cc4ffced894b3c1ab09c4d46caee12b1 (diff)
downloadcpython-ca956e2e47f6b2bcaeed824a500cac269db750ba.zip
cpython-ca956e2e47f6b2bcaeed824a500cac269db750ba.tar.gz
cpython-ca956e2e47f6b2bcaeed824a500cac269db750ba.tar.bz2
When catching errors from os.rmdir(), test for os.error, not IOError!
Diffstat (limited to 'Lib')
-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 e28d721..382a42e 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