Message260493
This looks like an extension of Issue 21058. Does the unlink() work on Windows? It seems to me that the file is configured to remove itself on close(), therefore I expect unlink() will raise an exception of its own. Also made some suggestions in the code review.
This problem also affects Python 2, if you fudge the right wrong parameters:
>>> NamedTemporaryFile((), prefix="blaua.")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/proj/python/cpython/Lib/tempfile.py", line 477, in NamedTemporaryFile
file = _os.fdopen(fd, mode, bufsize)
TypeError: argument 2 must be string, not tuple
[59140 refs]
>>> glob("/tmp/blaua.*")
['/tmp/blaua.AFtEqx'] |
|
Date |
User |
Action |
Args |
2016-02-19 01:09:48 | martin.panter | set | recipients:
+ martin.panter, georg.brandl, SilentGhost, Eugene Viktorov |
2016-02-19 01:09:48 | martin.panter | set | messageid: <1455844188.76.0.761774989724.issue26385@psf.upfronthosting.co.za> |
2016-02-19 01:09:48 | martin.panter | link | issue26385 messages |
2016-02-19 01:09:48 | martin.panter | create | |
|