mirror of
https://github.com/python/cpython.git
synced 2025-10-05 06:31:48 +00:00
Bug #1586613: fix zlib and bz2 codecs' incremental en/decoders.
(backport from rev. 52529)
This commit is contained in:
parent
b8205a1188
commit
c68d2cc3f2
4 changed files with 55 additions and 8 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue