Skip to content
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

Add filtering of the test context Python interpreter #4364

Merged
merged 1 commit into from
Jun 17, 2024

Conversation

zanieb
Copy link
Member

@zanieb zanieb commented Jun 17, 2024

Does not handle tests with multiple Python versions yet, working on that separately because the change is more invasive

Does not handle tests with multiple Python versions yet, workingon that separately because the change is more invasive
@zanieb zanieb added the testing Internal testing of behavior label Jun 17, 2024
@zanieb zanieb merged commit 94fe70d into main Jun 17, 2024
47 checks passed
@zanieb zanieb deleted the zb/filter-python-version branch June 17, 2024 18:11
zanieb added a commit that referenced this pull request Jun 17, 2024
Extends #4364 automatically adding filters to the test context for
additional test virtual environments.

It turns out that the `pip sync` tests were really on the loose with
their virtual environment creation and it was difficult to use the new
helpers because they require mutability and the tests had immutable
borrows to extend the filters 😭. I refactored the tests to just reset
the environment.
zanieb added a commit that referenced this pull request Jun 18, 2024
It was becoming problematic that the virtual environment test context
diverged from the other one i.e. we had to implement filtering twice.
This combines the contexts and tweaks the `TestContext` API and
filtering mechanisms for Python versions. Combined with my previous
changes to the test context at #4364 and
#4368 this finally unblocks the
snapshots for test cases in #4360 and
#4362.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing Internal testing of behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants