diff options
author | Guido van Rossum <guido@python.org> | 2001-03-02 05:46:17 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-03-02 05:46:17 (GMT) |
commit | ca956e2e47f6b2bcaeed824a500cac269db750ba (patch) | |
tree | 6d1a4a0671d76ff2c35dfe5baf2d782f503251b0 /Lib/test | |
parent | fe010e41cc4ffced894b3c1ab09c4d46caee12b1 (diff) | |
download | cpython-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/test')
-rw-r--r-- | Lib/test/test_mailbox.py | 6 |
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 |