Skip to content

Commit f8a0cc7

Browse files
committed
Add cleanup policy for tmpdirs
1 parent 3884dbb commit f8a0cc7

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tests/pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ markers = [
2020
"slow: end-to-end tests that exercise reconnect/timeouts",
2121
"partyline: spawns eggdrop with -nt so stdin is the HQ partyline",
2222
]
23+
# Keep tmpdir only when a test fails; pytest sweeps it on session exit.
24+
tmp_path_retention_policy = "failed"
25+
tmp_path_retention_count = 3
2326

2427
[tool.ruff]
2528
target-version = "py311"

0 commit comments

Comments
 (0)