Fix typo: BadZipFile exists in 3.2+ only, not older versions.

This commit is contained in:
Éric Araujo 2011-02-02 16:58:43 +00:00
parent 07c35eb3b5
commit a172e2502c

View 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")