@@ -281,7 +281,6 @@ def test_decompressor_bad_input(self):
281281 lzd = LZMADecompressor (lzma .FORMAT_RAW , filters = FILTERS_RAW_1 )
282282 self .assertRaises (LZMAError , lzd .decompress , COMPRESSED_XZ )
283283
284- @unittest .expectedFailure # TODO: RUSTPYTHON; OSError: stream/file format not recognized
285284 def test_decompressor_bug_28275 (self ):
286285 # Test coverage for Issue 28275
287286 lzd = LZMADecompressor ()
@@ -441,7 +440,6 @@ def test_bad_args(self):
441440 lzma .decompress (
442441 b"" , format = lzma .FORMAT_ALONE , filters = FILTERS_RAW_1 )
443442
444- @unittest .expectedFailure # TODO: RUSTPYTHON; OSError: memory limit reached
445443 def test_decompress_memlimit (self ):
446444 with self .assertRaises (LZMAError ):
447445 lzma .decompress (COMPRESSED_XZ , memlimit = 1024 )
@@ -539,12 +537,10 @@ def test_decompress_multistream(self):
539537
540538 # Test robust handling of non-LZMA data following the compressed stream(s).
541539
542- @unittest .expectedFailure # TODO: RUSTPYTHON; OSError: stream/file format not recognized
543540 def test_decompress_trailing_junk (self ):
544541 ddata = lzma .decompress (COMPRESSED_XZ + COMPRESSED_BOGUS )
545542 self .assertEqual (ddata , INPUT )
546543
547- @unittest .expectedFailure # TODO: RUSTPYTHON; OSError: stream/file format not recognized
548544 def test_decompress_multistream_trailing_junk (self ):
549545 ddata = lzma .decompress (COMPRESSED_XZ * 3 + COMPRESSED_BOGUS )
550546 self .assertEqual (ddata , INPUT * 3 )
@@ -909,12 +905,10 @@ def test_read_multistream_buffer_size_aligned(self):
909905 finally :
910906 _streams .BUFFER_SIZE = saved_buffer_size
911907
912- @unittest .expectedFailure # TODO: RUSTPYTHON; OSError: stream/file format not recognized
913908 def test_read_trailing_junk (self ):
914909 with LZMAFile (BytesIO (COMPRESSED_XZ + COMPRESSED_BOGUS )) as f :
915910 self .assertEqual (f .read (), INPUT )
916911
917- @unittest .expectedFailure # TODO: RUSTPYTHON; OSError: stream/file format not recognized
918912 def test_read_multistream_trailing_junk (self ):
919913 with LZMAFile (BytesIO (COMPRESSED_XZ * 5 + COMPRESSED_BOGUS )) as f :
920914 self .assertEqual (f .read (), INPUT * 5 )
@@ -1020,7 +1014,6 @@ def test_read_bad_args(self):
10201014 with LZMAFile (BytesIO (COMPRESSED_XZ )) as f :
10211015 self .assertRaises (TypeError , f .read , float ())
10221016
1023- @unittest .expectedFailure # TODO: RUSTPYTHON; OSError: stream/file format not recognized
10241017 def test_read_bad_data (self ):
10251018 with LZMAFile (BytesIO (COMPRESSED_BOGUS )) as f :
10261019 self .assertRaises (LZMAError , f .read )
0 commit comments