Commit c5b0fc6
committed
Fix pager test pollution for parallel execution
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.1 parent af5facf commit c5b0fc6
1 file changed
Lines changed: 2 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | 12 | | |
15 | 13 | | |
16 | 14 | | |
| |||
379 | 377 | | |
380 | 378 | | |
381 | 379 | | |
382 | | - | |
| 380 | + | |
383 | 381 | | |
384 | 382 | | |
385 | 383 | | |
| |||
391 | 389 | | |
392 | 390 | | |
393 | 391 | | |
394 | | - | |
395 | | - | |
| 392 | + | |
396 | 393 | | |
397 | 394 | | |
398 | 395 | | |
| |||
0 commit comments