Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Unmark test_lzma
  • Loading branch information
youknowone committed Feb 27, 2026
commit ff02c266ac49e8b5a798269312398d760beccafe
7 changes: 0 additions & 7 deletions Lib/test/test_lzma.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,6 @@ def test_decompressor_bad_input(self):
lzd = LZMADecompressor(lzma.FORMAT_RAW, filters=FILTERS_RAW_1)
self.assertRaises(LZMAError, lzd.decompress, COMPRESSED_XZ)

@unittest.expectedFailure # TODO: RUSTPYTHON; OSError: stream/file format not recognized
def test_decompressor_bug_28275(self):
# Test coverage for Issue 28275
lzd = LZMADecompressor()
Expand Down Expand Up @@ -441,7 +440,6 @@ def test_bad_args(self):
lzma.decompress(
b"", format=lzma.FORMAT_ALONE, filters=FILTERS_RAW_1)

@unittest.expectedFailure # TODO: RUSTPYTHON; OSError: memory limit reached
def test_decompress_memlimit(self):
with self.assertRaises(LZMAError):
lzma.decompress(COMPRESSED_XZ, memlimit=1024)
Expand Down Expand Up @@ -539,12 +537,10 @@ def test_decompress_multistream(self):

# Test robust handling of non-LZMA data following the compressed stream(s).

@unittest.expectedFailure # TODO: RUSTPYTHON; OSError: stream/file format not recognized
def test_decompress_trailing_junk(self):
ddata = lzma.decompress(COMPRESSED_XZ + COMPRESSED_BOGUS)
self.assertEqual(ddata, INPUT)

@unittest.expectedFailure # TODO: RUSTPYTHON; OSError: stream/file format not recognized
def test_decompress_multistream_trailing_junk(self):
ddata = lzma.decompress(COMPRESSED_XZ * 3 + COMPRESSED_BOGUS)
self.assertEqual(ddata, INPUT * 3)
Expand Down Expand Up @@ -909,12 +905,10 @@ def test_read_multistream_buffer_size_aligned(self):
finally:
_streams.BUFFER_SIZE = saved_buffer_size

@unittest.expectedFailure # TODO: RUSTPYTHON; OSError: stream/file format not recognized
def test_read_trailing_junk(self):
with LZMAFile(BytesIO(COMPRESSED_XZ + COMPRESSED_BOGUS)) as f:
self.assertEqual(f.read(), INPUT)

@unittest.expectedFailure # TODO: RUSTPYTHON; OSError: stream/file format not recognized
def test_read_multistream_trailing_junk(self):
with LZMAFile(BytesIO(COMPRESSED_XZ * 5 + COMPRESSED_BOGUS)) as f:
self.assertEqual(f.read(), INPUT * 5)
Expand Down Expand Up @@ -1020,7 +1014,6 @@ def test_read_bad_args(self):
with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
self.assertRaises(TypeError, f.read, float())

@unittest.expectedFailure # TODO: RUSTPYTHON; OSError: stream/file format not recognized
def test_read_bad_data(self):
with LZMAFile(BytesIO(COMPRESSED_BOGUS)) as f:
self.assertRaises(LZMAError, f.read)
Expand Down