[Python-checkins] r88320 - python/branches/release27-maint/Lib/test/test_zipfile.py

eric.araujo python-checkins at python.org
Wed Feb 2 18:03:38 CET 2011


Author: eric.araujo
Date: Wed Feb  2 18:03:38 2011
New Revision: 88320

Log:
Fix typo: BadZipFile exists in 3.2+ only, not older versions.


Modified:
   python/branches/release27-maint/Lib/test/test_zipfile.py

Modified: python/branches/release27-maint/Lib/test/test_zipfile.py
==============================================================================
--- python/branches/release27-maint/Lib/test/test_zipfile.py	(original)
+++ python/branches/release27-maint/Lib/test/test_zipfile.py	Wed Feb  2 18:03:38 2011
@@ -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")


More information about the Python-checkins mailing list