flip around basetemp folder reset to see if it helps on windows
This commit is contained in:
parent
5567c772cd
commit
2d7582bd92
|
@ -61,8 +61,9 @@ class TempPathFactory(object):
|
||||||
""" return base temporary directory. """
|
""" return base temporary directory. """
|
||||||
if self._basetemp is None:
|
if self._basetemp is None:
|
||||||
if self._given_basetemp is not None:
|
if self._given_basetemp is not None:
|
||||||
basetemp = self._given_basetemp.resolve()
|
basetemp = self._given_basetemp
|
||||||
ensure_reset_dir(basetemp)
|
ensure_reset_dir(basetemp)
|
||||||
|
basetemp = basetemp.resolve()
|
||||||
else:
|
else:
|
||||||
from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
|
from_env = os.environ.get("PYTEST_DEBUG_TEMPROOT")
|
||||||
temproot = Path(from_env or tempfile.gettempdir()).resolve()
|
temproot = Path(from_env or tempfile.gettempdir()).resolve()
|
||||||
|
|
Loading…
Reference in New Issue