Yury Selivanov added the comment: This looks like a bug to me (or we should complain if a relative 'dir' was passed).
I'm attaching a patch that fixes this, although I'm not sure if the unittest I wrote will work on windows. Moreover, 'mkstemp' and 'mktemp' have the same bug (separate issue for them?) ---------- keywords: +patch nosy: +yselivanov Added file: http://bugs.python.org/file33570/tempfile_01.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue20267> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com