[Python-checkins] cpython: Issue19619: skip zlib error test when zlib not available
zach.ware
python-checkins at python.org
Mon Dec 30 21:54:23 CET 2013
http://hg.python.org/cpython/rev/0e10367c88ce
changeset: 88226:0e10367c88ce
user: Zachary Ware <zachary.ware at gmail.com>
date: Mon Dec 30 14:54:11 2013 -0600
summary:
Issue19619: skip zlib error test when zlib not available
files:
Lib/test/test_codecs.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/Lib/test/test_codecs.py b/Lib/test/test_codecs.py
--- a/Lib/test/test_codecs.py
+++ b/Lib/test/test_codecs.py
@@ -2335,7 +2335,7 @@
try:
import zlib
except ImportError:
- pass
+ zlib = None
else:
bytes_transform_encodings.append("zlib_codec")
transform_aliases["zlib_codec"] = ["zip", "zlib"]
@@ -2440,6 +2440,7 @@
bad_input.decode("rot_13")
self.assertIsNone(failure.exception.__cause__)
+ @unittest.skipUnless(zlib, "Requires zlib support")
def test_custom_zlib_error_is_wrapped(self):
# Check zlib codec gives a good error for malformed input
msg = "^decoding with 'zlib_codec' codec failed"
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list