Skip to content

Conversation

@mxschmitt
Copy link
Contributor

@mxschmitt mxschmitt commented May 27, 2025

@mxschmitt mxschmitt force-pushed the mxschmitt-patch-4 branch from 5d86188 to 7539a5c Compare May 27, 2025 21:58
@mxschmitt mxschmitt changed the title Update ci.yml test: fix Chromium tests on Windows May 27, 2025
@mxschmitt mxschmitt marked this pull request as ready for review May 27, 2025 21:59


@pytest.fixture
def pytester(pytester: pytest.Pytester) -> pytest.Pytester:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Inside the pytester fixture they create a new pytest.Pytester instance which inside their constructor overrides these env vars. This overrides the pytester fixture so it runs after it was created, resets the env vars and returns the original instance back.

@mxschmitt mxschmitt merged commit c9e392b into main May 27, 2025
16 checks passed
@mxschmitt mxschmitt deleted the mxschmitt-patch-4 branch May 27, 2025 23:11
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.

3 participants