commit | 67843b3886192a1ee31cc12edba2ad41b758c97d | [log] [tgz] |
---|---|---|
author | Éric Araujo <merwok@netwok.org> | Wed Feb 02 17:03:38 2011 +0000 |
committer | Éric Araujo <merwok@netwok.org> | Wed Feb 02 17:03:38 2011 +0000 |
tree | 38372da2bb23d613bd101b4b839dcb0296cb2064 | |
parent | d57b4d3b31f80e2e72eebab7aea37378c4729d19 [diff] [blame] |
Fix typo: BadZipFile exists in 3.2+ only, not older versions.
diff --git a/Lib/test/test_zipfile.py b/Lib/test/test_zipfile.py index ddd713f..7c8c0c5 100644 --- a/Lib/test/test_zipfile.py +++ b/Lib/test/test_zipfile.py
@@ -956,7 +956,7 @@ 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")