[Python-checkins] cpython (3.2): Skip test that requires zlib when zlib is not available.

ezio.melotti python-checkins at python.org
Mon Mar 14 17:57:27 CET 2011


http://hg.python.org/cpython/rev/d2689ed3dc83
changeset: 68460:d2689ed3dc83
branch: 3.2
parent: 68450:e8679f07badd
user: Ezio Melotti <ezio.melotti at gmail.com>
date: Mon Mar 14 18:57:02 2011 +0200
summary:
 Skip test that requires zlib when zlib is not available.
files:
 Lib/test/test_zipfile.py
diff --git a/Lib/test/test_zipfile.py b/Lib/test/test_zipfile.py
--- a/Lib/test/test_zipfile.py
+++ b/Lib/test/test_zipfile.py
@@ -489,6 +489,7 @@
 except zipfile.BadZipFile:
 self.assertTrue(zipfp2.fp is None, 'zipfp is not closed')
 
+ @skipUnless(zlib, "requires zlib")
 def test_unicode_filenames(self):
 # bug #10801
 fname = findfile('zip_cp437_header.zip')
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /