Skip to content

Fix pager test leaks#3238

Open
kdeldycke wants to merge 1 commit intopallets:stablefrom
kdeldycke:fix-pager-test-pollution
Open

Fix pager test leaks#3238
kdeldycke wants to merge 1 commit intopallets:stablefrom
kdeldycke:fix-pager-test-pollution

Conversation

@kdeldycke
Copy link
Collaborator

This PR fix an issue with the test_echo_via_pager test, which is polluting other tests and is leaky.

This issue was uncovered while playing with parallels and random tests in #3151 (comment) .

Use pytest's ``tmp_path`` fixture instead of a shared
``Path(tempdir) / "pager_out.txt"`` path. The ``tempfile.tempdir``
module global defaults to ``None``, so ``Path(None)`` resolves to the
current directory, causing all parallel workers to race on the same
file.
@kdeldycke kdeldycke changed the title Fix pager test pollution for parallel execution Fix pager test leaks Mar 2, 2026
@kdeldycke kdeldycke added this to the 8.3.2 milestone Mar 2, 2026
@kdeldycke kdeldycke added bug f:test runner feature: cli test runner labels Mar 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug f:test runner feature: cli test runner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant