[issue20267] TemporaryDirectory does not resolve path when created using a relative path
Serhiy Storchaka
report at bugs.python.org
Sat Oct 4 15:45:51 CEST 2014
Serhiy Storchaka added the comment:
> Should I use os.path.realpath?
I don't see other way.
But there is other issue. Following code works now, but will fail with the patch:
import os, tempfile
os.mkdir('parent')
os.chdir('parent')
t = tempfile.TemporaryDirectory(dir=".")
os.rename('../parent', '../parent2')
t.cleanup()
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20267>
_______________________________________
More information about the Python-bugs-list
mailing list