Skip to content

Commit

Permalink
Merge pull request #7955 from nicoddemus/backport-7914
Browse files Browse the repository at this point in the history
[6.1.x] Increase temp dir deletion period to 3 days (#7914)
  • Loading branch information
nicoddemus committed Oct 28, 2020
2 parents a88fe58 + 8c1c1ae commit cd221df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog/7911.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +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.
2 changes: 1 addition & 1 deletion src/_pytest/pathlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
__all__ = ["Path", "PurePath"]


LOCK_TIMEOUT = 60 * 60 * 3
LOCK_TIMEOUT = 60 * 60 * 24 * 3


_AnyPurePath = TypeVar("_AnyPurePath", bound=PurePath)
Expand Down

0 comments on commit cd221df

Please sign in to comment.