summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2011-02-02 16:58:43 (GMT)
committerÉric Araujo <merwok@netwok.org>2011-02-02 16:58:43 (GMT)
commita172e2502c6f4a78b268838ca0c965bb7599f7ef (patch)
treeeb9d995e588870e52807623faea836c39c6476df /Lib/test
parent07c35eb3b5e71c5cd343e5b74a7e9106d7ef831a (diff)
downloadcpython-a172e2502c6f4a78b268838ca0c965bb7599f7ef.zip
cpython-a172e2502c6f4a78b268838ca0c965bb7599f7ef.tar.gz
cpython-a172e2502c6f4a78b268838ca0c965bb7599f7ef.tar.bz2
Fix typo: BadZipFile exists in 3.2+ only, not older versions.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_zipfile.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_zipfile.py b/Lib/test/test_zipfile.py
index c989bf0..34d0fbc 100644
--- a/Lib/test/test_zipfile.py
+++ b/Lib/test/test_zipfile.py
@@ -909,7 +909,7 @@ class OtherTests(unittest.TestCase):
zipf.close()
try:
zipf = zipfile.ZipFile(TESTFN, mode="r")
- except zipfile.BadZipFile:
+ except zipfile.BadZipfile:
self.fail("Unable to create empty ZIP file in 'w' mode")
zipf = zipfile.ZipFile(TESTFN, mode="a")