Skip to content

Commit add99ed

Browse files
Fix #3278 - Boost temporary directories cleanup in tests (#3323)
* Fix #3278 - Boost temporary directories cleanup in tests * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 352a3dd commit add99ed

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

docs/changelog/3278.bugfix.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Boost temporary directories cleanup in tests - by :user:`ziima`.

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,8 @@ testpaths = [
169169
"tests",
170170
]
171171
addopts = "--tb=auto -ra --showlocals --no-success-flaky-report"
172+
# Keep temporary directories only for failed or errored tests.
173+
tmp_path_retention_policy = "failed"
172174

173175
[tool.coverage]
174176
html.show_contexts = true

src/tox/tox_env/python/api.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
from tox.tox_env.errors import Fail, Recreate, Skip
1616

1717
if TYPE_CHECKING:
18-
1918
from tox.config.main import Config
2019

2120

0 commit comments

Comments
 (0)