test(venv): [repro] importlib_metadata_test fails to find/read wheel files - #4025
Draft
rickeylev wants to merge 4 commits into
Draft
test(venv): [repro] importlib_metadata_test fails to find/read wheel files#4025rickeylev wants to merge 4 commits into
rickeylev wants to merge 4 commits into
Conversation
…and are readable Expand importlib_metadata_test to assert that all files returned by importlib.metadata.files() can be found on disk and read both as binary and UTF-8 text. Update test fixture RECORD files to list installed paths.
…und and read Assert that each file returned by importlib.metadata.files() exists and can be read, reproducing the issue with unrewritten RECORD files.
Verify that the list of files returned by importlib.metadata.files() matches the expected set of paths from the distribution's RECORD.
Sort expected_paths list alphabetically in source for improved readability.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a reproduction test case to observe CI behavior when
inspecting wheel distribution files via
importlib.metadata.files().Currently, distribution files returned by
importlib.metadata.files()may fail to be located or read ondisk in virtual environments. This change expands
importlib_metadata_testto verify that all files listed in adistribution's metadata exist and can be read both as binary
and UTF-8 text.