diff options
author | Ronny Pfannschmidt <opensource@ronnypfannschmidt.de> | 2018-10-02 20:29:33 +0200 |
---|---|---|
committer | Ronny Pfannschmidt <opensource@ronnypfannschmidt.de> | 2018-10-11 07:15:09 +0200 |
commit | ebd597b2fdba6faca1645c75cf3cf82849c76715 (patch) | |
tree | 90252e33b86a518c6cbd6a05e196c00e40342b3d /src/_pytest/tmpdir.py | |
parent | 94829c391bc868f40f727be7f86d16fd1c223756 (diff) | |
download | pytest-ebd597b2fdba6faca1645c75cf3cf82849c76715.tar.gz |
use the constant for lock timeouts
Diffstat (limited to 'src/_pytest/tmpdir.py')
-rw-r--r-- | src/_pytest/tmpdir.py | 3 |
1 files changed, 2 insertions, 1 deletions
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 |