Skip to content

Commit cd221df

Browse files
authored
Merge pull request #7955 from nicoddemus/backport-7914
[6.1.x] Increase temp dir deletion period to 3 days (#7914)
2 parents a88fe58 + 8c1c1ae commit cd221df

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Diff for: changelog/7911.bugfix.rst

+1
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.

Diff for: src/_pytest/pathlib.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
__all__ = ["Path", "PurePath"]
3939

4040

41-
LOCK_TIMEOUT = 60 * 60 * 3
41+
LOCK_TIMEOUT = 60 * 60 * 24 * 3
4242

4343

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

0 commit comments

Comments
 (0)