common: port the lzma engine to xz-core by youknowone · Pull Request #8639 · RustPython/RustPython · GitHub
Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
25 changes: 2 additions & 23 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 9 additions & 2 deletions Cargo.toml
3 changes: 0 additions & 3 deletions Lib/test/test_lzma.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ def test_decompressor_chunks(self):
self.assertTrue(lzd.eof)
self.assertEqual(lzd.unused_data, b"")

@unittest.expectedFailure # TODO: RUSTPYTHON; EOFError: End of stream already reached
def test_decompressor_chunks_empty(self):
lzd = LZMADecompressor()
out = []
Expand All @@ -159,7 +158,6 @@ def test_decompressor_chunks_empty(self):
self.assertTrue(lzd.eof)
self.assertEqual(lzd.unused_data, b"")

@unittest.expectedFailure # TODO: RUSTPYTHON; AttributeError: 'LZMADecompressor' object has no attribute 'check'
def test_decompressor_chunks_maxsize(self):
lzd = LZMADecompressor()
max_length = 100
Expand Down Expand Up @@ -1352,7 +1350,6 @@ def test_tell_bad_args(self):
f.close()
self.assertRaises(ValueError, f.tell)

@unittest.expectedFailure # TODO: RUSTPYTHON; AssertionError: True is not false
def test_issue21872(self):
# sometimes decompress data incompletely

Expand Down
9 changes: 2 additions & 7 deletions crates/common/Cargo.toml
Loading
Loading