mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Bug #1586613: fix zlib and bz2 codecs' incremental en/decoders.
This commit is contained in:
		
							parent
							
								
									5b4e1c2530
								
							
						
					
					
						commit
						2c9838e30f
					
				
					 4 changed files with 55 additions and 8 deletions
				
			
		|  | @ -1062,6 +1062,7 @@ def test_readline(self): | |||
|     "punycode", | ||||
|     "unicode_internal" | ||||
| ] | ||||
| broken_incremental_coders = broken_unicode_with_streams[:] | ||||
| 
 | ||||
| try: | ||||
|     import bz2 | ||||
|  | @ -1111,6 +1112,7 @@ def test_basics(self): | |||
|                     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
	
	 Georg Brandl
						Georg Brandl