[issue7443] test.support.unlink issue on Windows platform

Antoine Pitrou report at bugs.python.org
Sun Mar 27 16:33:50 CEST 2011


Antoine Pitrou <pitrou at free.fr> added the comment:

> I did start to undertake a conversion of TESTFN to a named temporary,
> but it started to sprawl all over the place and came up against a
> number of corner cases (eg where tests deliberately wanted two
> filenames to be the same) so I gave up.

How about renaming to a unique random name just before the unlink(), as
Mercurial does?
Would it alleviate the problem or am I missing something?

----------

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


More information about the Python-bugs-list mailing list