summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-10-29 14:39:09 (GMT)
committerGeorg Brandl <georg@python.org>2006-10-29 14:39:09 (GMT)
commit2c9838e30f825b3bdaf0fc33f15a3cc74320ba6e (patch)
treee11a9246b8e41fd57ae9b19cc20de33937a6b33f /Lib/test
parent5b4e1c2530636eab196fb98ea8f49389ff419e28 (diff)
downloadcpython-2c9838e30f825b3bdaf0fc33f15a3cc74320ba6e.zip
cpython-2c9838e30f825b3bdaf0fc33f15a3cc74320ba6e.tar.gz
cpython-2c9838e30f825b3bdaf0fc33f15a3cc74320ba6e.tar.bz2
Bug #1586613: fix zlib and bz2 codecs' incremental en/decoders.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_codecs.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_codecs.py b/Lib/test/test_codecs.py
index fa52033..5c82d3f 100644
--- a/Lib/test/test_codecs.py
+++ b/Lib/test/test_codecs.py
@@ -1062,6 +1062,7 @@ broken_unicode_with_streams = [
"punycode",
"unicode_internal"
]
+broken_incremental_coders = broken_unicode_with_streams[:]
try:
import bz2
@@ -1111,6 +1112,7 @@ class BasicUnicodeTest(unittest.TestCase):
decodedresult += reader.read()
self.assertEqual(decodedresult, s, "%r != %r (encoding=%r)" % (decodedresult, s, encoding))
+ if encoding not in broken_incremental_coders:
# check incremental decoder/encoder (fetched via the Python
# and C API) and iterencode()/iterdecode()
try: