[issue20267] TemporaryDirectory does not resolve path when created using a relative path

Antony Lee report at bugs.python.org
Wed Jan 15 05:48:28 CET 2014


New submission from Antony Lee:

Essentially, the following fails:

t = tempfile.TemporaryDirectory(dir=".")
os.chdir(some_other_dir)
t.cleanup()

because t.name is a relative path.  Resolving the "dir" argument when the directory is created should(?) fix the issue.

----------
components: Library (Lib)
messages: 208141
nosy: Antony.Lee
priority: normal
severity: normal
status: open
title: TemporaryDirectory does not resolve path when created using a relative path
versions: Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20267>
_______________________________________


More information about the Python-bugs-list mailing list