From 34ae05cfe0b5795d042616047513b92ed5fce979 Mon Sep 17 00:00:00 2001 From: Vasilis Gerakaris Date: Mon, 19 Oct 2020 18:07:27 +0300 Subject: [PATCH] Increase temp dir deletion period to 3 days Closes #7911 --- changelog/7911.trivial.rst | 2 ++ src/_pytest/pathlib.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 changelog/7911.trivial.rst diff --git a/changelog/7911.trivial.rst b/changelog/7911.trivial.rst new file mode 100644 index 00000000000..862fcfda4d5 --- /dev/null +++ b/changelog/7911.trivial.rst @@ -0,0 +1,2 @@ +Change `LOCK_TIMEOUT` constant to 3 days (previous value 3 hours) to avoid temporary dir deletion. + diff --git a/src/_pytest/pathlib.py b/src/_pytest/pathlib.py index 0bc5bff2bb5..f0bdb1481bb 100644 --- a/src/_pytest/pathlib.py +++ b/src/_pytest/pathlib.py @@ -32,7 +32,7 @@ from _pytest.outcomes import skip from _pytest.warning_types import PytestWarning -LOCK_TIMEOUT = 60 * 60 * 3 +LOCK_TIMEOUT = 60 * 60 * 24 * 3 _AnyPurePath = TypeVar("_AnyPurePath", bound=PurePath)