From ebd597b2fdba6faca1645c75cf3cf82849c76715 Mon Sep 17 00:00:00 2001 From: Ronny Pfannschmidt Date: Tue, 2 Oct 2018 20:29:33 +0200 Subject: [PATCH] use the constant for lock timeouts --- src/_pytest/tmpdir.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/_pytest/tmpdir.py b/src/_pytest/tmpdir.py index 7b5f6510e..cc38dcbf2 100644 --- a/src/_pytest/tmpdir.py +++ b/src/_pytest/tmpdir.py @@ -13,6 +13,7 @@ from .pathlib import ( make_numbered_dir, make_numbered_dir_with_cleanup, ensure_reset_dir, + LOCK_TIMEOUT, ) @@ -60,7 +61,7 @@ class TempPathFactory(object): rootdir = temproot.joinpath("pytest-of-{}".format(user)) rootdir.mkdir(exist_ok=True) basetemp = make_numbered_dir_with_cleanup( - prefix="pytest-", root=rootdir, keep=3, lock_timeout=10000 + prefix="pytest-", root=rootdir, keep=3, lock_timeout=LOCK_TIMEOUT ) assert basetemp is not None self._basetemp = t = basetemp