-
-
Notifications
You must be signed in to change notification settings - Fork 31.1k
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
Extract ZipInfo for archive functionality #123424
Comments
@jaraco are you taking it or not? if not, I can take it |
Originally, I was planning to do it, but then I realized it might be an interesting one for others. Have at it! |
See also #121402 that implements a similar feature. I paused it because I am planning to try a different approach. |
Nothing against extracting the functionality if it's useful elsewhere, but the test doesn't actually depend on the compression or any of the metadata set by |
When I added the |
Passing a And the fact that That said, even if I very much doubt any of the metadata would ever affect this specific test, and would consider that changing to be a bug, I agree that ensuring consistency wrt to |
Removing my assignment on this task since I didn't continue working on the associated PR (and have to prioritize my backlog). |
…ies (#123429) --------- Co-authored-by: Jason R. Coombs <[email protected]>
…roperties (python#123429) --------- Co-authored-by: Jason R. Coombs <[email protected]>
In #123354, I found the need to copy code from zipfile into the test:
cpython/Lib/test/test_zipfile/_path/test_path.py
Lines 662 to 676 in 9e108b8
Let's instead extract that functionality in the zipfile module for re-use in the test (before it starts diverging).
Linked PRs
ZipInfo._for_archive
to set suitable default properties #123429The text was updated successfully, but these errors were encountered: