Skip to content

Fix bz2 module #5605

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 10 commits into from
Closed

Fix bz2 module #5605

wants to merge 10 commits into from

Conversation

arihant2math
Copy link
Collaborator

@arihant2math arihant2math commented Mar 13, 2025

The new libbz2-rs-sys is a rust only implementation of bz2. This is similar to #5562.

Blog post: https://trifectatech.org/blog/translating-bzip2-with-c2rust/

@arihant2math arihant2math marked this pull request as ready for review April 15, 2025 22:30
@arihant2math
Copy link
Collaborator Author

@youknowone ready for merge

@@ -106,6 +106,8 @@ def testBadArgs(self):
# compresslevel is keyword-only
self.assertRaises(TypeError, BZ2File, os.devnull, "r", 3)

# TODO: RUSTPYTHON
@unittest.expectedFailure
Copy link
Member

@youknowone youknowone Apr 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why should we go this way if it occures these many regressions?
If this can be fixed in future, let's fix it first and merge it later.
Otherwise this must be an optional feature for specific requirements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants