diff options
author | Georg Brandl <georg@python.org> | 2006-10-29 14:39:13 +0000 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2006-10-29 14:39:13 +0000 |
commit | c68d2cc3f2950d8132ea83bcf2c9fc1359e99a4d (patch) | |
tree | 6a6a8745273c794f08343f21bfbe18cb7452541c /Lib/test/test_codecs.py | |
parent | b8205a11882161968fe9b67871d4000c4b3efb08 (diff) | |
download | cpython-git-c68d2cc3f2950d8132ea83bcf2c9fc1359e99a4d.tar.gz |
Bug #1586613: fix zlib and bz2 codecs' incremental en/decoders.
(backport from rev. 52529)
Diffstat (limited to 'Lib/test/test_codecs.py')
-rw-r--r-- | Lib/test/test_codecs.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_codecs.py b/Lib/test/test_codecs.py index 60b8a7222c..e64e78102c 100644 --- a/Lib/test/test_codecs.py +++ b/Lib/test/test_codecs.py @@ -1063,6 +1063,7 @@ broken_unicode_with_streams = [ "punycode", "unicode_internal" ] +broken_incremental_coders = broken_unicode_with_streams[:] try: import bz2 @@ -1112,6 +1113,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: |