Skip to content

Commit a431310

Browse files
vgeraknicoddemus
andauthored
Increase temp dir deletion period to 3 days (#7914)
Co-authored-by: Bruno Oliveira <[email protected]>
1 parent 78c09b9 commit a431310

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog/7911.bugfix.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Directories created by `tmpdir` are now considered stale after 3 days without modification (previous value was 3 hours) to avoid deleting directories still in use in long running test suites.

src/_pytest/pathlib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
from _pytest.outcomes import skip
3333
from _pytest.warning_types import PytestWarning
3434

35-
LOCK_TIMEOUT = 60 * 60 * 3
35+
LOCK_TIMEOUT = 60 * 60 * 24 * 3
3636

3737

3838
_AnyPurePath = TypeVar("_AnyPurePath", bound=PurePath)

0 commit comments

Comments
 (0)