[issue25717] tempfile.TemporaryFile fails when dir option set to directory residing on host OS mount

Martin Panter report at bugs.python.org
Sat Jun 18 07:36:33 EDT 2016


Martin Panter added the comment:

This original bug was about fstat() failing for an anonymous file (after the directory entry was removed). But in your situation the file system refuses to unlink the directory entry.

If you think there is something that can be fixed in Python, I suggest open a new bug. But it seems this is working as documented: “Under Unix, the directory entry for the file is removed immediately after the file is created.” In your case, this cannot happen, so you get the error from the OS.

----------
versions: +Python 3.5, Python 3.6 -Python 2.7

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


More information about the Python-bugs-list mailing list