Skip to content
Snippets Groups Projects
Commit e14e1c3b authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

MNT: Make sure root is absolute

parent 4f5b9a34
No related branches found
No related tags found
No related merge requests found
......@@ -41,10 +41,14 @@ def tempdir(root=None, changeto=True, override=None, prefix=None):
this prefix.
"""
if root is not None:
root = os.path.abspath(root)
if override is None:
testdir = tempfile.mkdtemp(dir=root, prefix=prefix)
else:
testdir = override
prevdir = os.getcwd()
try:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment