Skip to content
Permalink
Browse files

Increase temp dir deletion period to 3 days (#7914)

Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com>
  • Loading branch information
vgerak and nicoddemus committed Oct 28, 2020
1 parent a88fe58 commit 8c1c1ae3107b890e53d8396cfbf79a5a20af09db
Showing with 2 additions and 1 deletion.
  1. +1 −0 changelog/7911.bugfix.rst
  2. +1 −1 src/_pytest/pathlib.py
@@ -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.
@@ -38,7 +38,7 @@
__all__ = ["Path", "PurePath"]


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


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

0 comments on commit 8c1c1ae

Please sign in to comment.