diff options
author | Éric Araujo <merwok@netwok.org> | 2011-02-02 16:58:43 (GMT) |
---|---|---|
committer | Éric Araujo <merwok@netwok.org> | 2011-02-02 16:58:43 (GMT) |
commit | a172e2502c6f4a78b268838ca0c965bb7599f7ef (patch) | |
tree | eb9d995e588870e52807623faea836c39c6476df /Lib/test | |
parent | 07c35eb3b5e71c5cd343e5b74a7e9106d7ef831a (diff) | |
download | cpython-a172e2502c6f4a78b268838ca0c965bb7599f7ef.zip cpython-a172e2502c6f4a78b268838ca0c965bb7599f7ef.tar.gz cpython-a172e2502c6f4a78b268838ca0c965bb7599f7ef.tar.bz2 |
Fix typo: BadZipFile exists in 3.2+ only, not older versions.
Diffstat (limited to 'Lib/test')
-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 c989bf0..34d0fbc 100644 --- a/Lib/test/test_zipfile.py +++ b/Lib/test/test_zipfile.py @@ -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") |