diff options
author | Éric Araujo <merwok@netwok.org> | 2011-02-02 17:03:38 +0000 |
---|---|---|
committer | Éric Araujo <merwok@netwok.org> | 2011-02-02 17:03:38 +0000 |
commit | 67843b3886192a1ee31cc12edba2ad41b758c97d (patch) | |
tree | 38372da2bb23d613bd101b4b839dcb0296cb2064 /Lib/test/test_zipfile.py | |
parent | d57b4d3b31f80e2e72eebab7aea37378c4729d19 (diff) | |
download | cpython-git-67843b3886192a1ee31cc12edba2ad41b758c97d.tar.gz |
Fix typo: BadZipFile exists in 3.2+ only, not older versions.
Diffstat (limited to 'Lib/test/test_zipfile.py')
-rw-r--r-- | Lib/test/test_zipfile.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_zipfile.py b/Lib/test/test_zipfile.py index ddd713f974..7c8c0c5542 100644 --- a/Lib/test/test_zipfile.py +++ b/Lib/test/test_zipfile.py @@ -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") |