]> granicus.if.org Git - python/commitdiff
Fix typo: BadZipFile exists in 3.2+ only, not older versions.
authorÉric Araujo <merwok@netwok.org>
Wed, 2 Feb 2011 16:58:43 +0000 (16:58 +0000)
committerÉric Araujo <merwok@netwok.org>
Wed, 2 Feb 2011 16:58:43 +0000 (16:58 +0000)
Lib/test/test_zipfile.py

index c989bf09116d29837b19775e5066cdef1061f6db..34d0fbcb7225ff5c675ec6c2abec36a84082beb1 100644 (file)
@@ -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")