From: Éric Araujo Date: Wed, 2 Feb 2011 16:58:43 +0000 (+0000) Subject: Fix typo: BadZipFile exists in 3.2+ only, not older versions. X-Git-Tag: v3.2.1b1~347^2~35 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a172e2502c6f4a78b268838ca0c965bb7599f7ef;p=thirdparty%2FPython%2Fcpython.git 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 c989bf09116d..34d0fbcb7225 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")