Skip to content

Fix pager test leaks#3238

Merged
Rowlando13 merged 1 commit into
pallets:stablefrom
kdeldycke:fix-pager-test-pollution
Apr 8, 2026
Merged

Fix pager test leaks#3238
Rowlando13 merged 1 commit into
pallets:stablefrom
kdeldycke:fix-pager-test-pollution

Conversation

@kdeldycke
Copy link
Copy Markdown
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) .

@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
@Rowlando13 Rowlando13 modified the milestones: 8.3.2, 8.3.3 Mar 15, 2026
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 force-pushed the fix-pager-test-pollution branch from eb03b2c to b1bc8c9 Compare April 8, 2026 14:36
@davidism
Copy link
Copy Markdown
Member

davidism commented Apr 8, 2026

Great, this will fix the issue I pointed out at some point where tox parallel stopped working for Click.

@Rowlando13 Rowlando13 merged commit 5df1001 into pallets:stable Apr 8, 2026
12 checks passed
@kdeldycke kdeldycke deleted the fix-pager-test-pollution branch April 9, 2026 08:45
@kdeldycke
Copy link
Copy Markdown
Collaborator Author

Thanks @Rowlando13 for the merge! :)

kdeldycke added a commit to kdeldycke/click that referenced this pull request Apr 9, 2026
Add missing entries for pallets#3238 and pallets#3299
Fix wrong version for pallets#3245 changelog entry
Lint section format
@kdeldycke
Copy link
Copy Markdown
Collaborator Author

For the record, just added a missing changelog entry in 1339fd3

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Apr 24, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug f:test runner feature: cli test runner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants