Fixes #4653 - tmp_path provides real path

This commit is contained in:
Adam Uhlir
2019-01-18 12:54:00 -08:00
parent 6154a5ac02
commit 04bd147d46
4 changed files with 19 additions and 1 deletions

View File

@@ -65,7 +65,7 @@ class TempPathFactory(object):
ensure_reset_dir(basetemp)
else:
from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
temproot = Path(from_env or tempfile.gettempdir())
temproot = Path(from_env or tempfile.gettempdir()).resolve()
user = get_user() or "unknown"
# use a sub-directory in the temproot to speed-up
# make_numbered_dir() call