Kaydet (Commit) 67843b38 authored tarafından Éric Araujo's avatar Éric Araujo

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

üst d57b4d3b
......@@ -956,7 +956,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")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment