[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Python-Dev] Tests failing on Windows with TESTFN

On 29Jul2018 0958, Tim Golden wrote:
> In the interests of trying to keep a focus to the changes I'm making, I 
> propose to start again by, as you suggest, making use of 
> test.support.unlink where it's not currently used. From the evidence I 
> don't believe that will solve every problem I'm seeing but it should 
> certainly reduce them.

One additional thing that may help (if support.unlink doesn't already do 
it) is to rename the file before deleting it. Renames are always 
possible even with open handles, and then you can create a new file at 
the original name.