Skip to content

Commit 9dd5cc6

Browse files
authored
Set tmp_path_retention_policy = 'failed' (#1413)
1 parent d5daaf4 commit 9dd5cc6

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,8 @@ norecursedirs = ["third-party-interface"]
5454
# the CI, where we definitely want the 'slow' tests to run.
5555
addopts = "-v -m 'not slow'"
5656

57+
# Tells pytest to keep around temporary paths (via tmp_path fixture) for
58+
# *failed tests* only. Otherwise, the /tmp folder can grow too large.
59+
tmp_path_retention_policy = "failed"
60+
5761
testpaths = ["test"]

0 commit comments

Comments
 (0)