mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
Fix typo: BadZipFile exists in 3.2+ only, not older versions.
This commit is contained in:
parent
07c35eb3b5
commit
a172e2502c
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue