mirror of
https://github.com/python/cpython.git
synced 2025-09-18 22:50:26 +00:00
Fix typo: BadZipFile exists in 3.2+ only, not older versions.
This commit is contained in:
parent
d57b4d3b31
commit
67843b3886
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue