[Zope-Coders] Win32 Tests - Zope HEAD - Not OK :-(

Chris Withers chrisw@nipltd.com
Tue, 29 Oct 2002 10:16:28 +0000


Tim Peters wrote:
> [Chris Withers]
> 
>>zope-tests@squishdot.org wrote:
>>
>>>Exception exceptions.OSError: (13, 'Permission denied',
>>
>>'C:\\WINNT\\TEMP\\~1440-109.inv') in <bound method
>>TemporaryFileWrapper.__del__ of <closed file
>>'C:\WINNT\TEMP\~1440-109.inv', mode 'w+b' at 0x028E63B8>> ignored
> 
>>Anyone know what this means
> 
> It invariably means someone is trying to delete (unlink) a temporary file
> that's still open.  That's easy to fall into because Linux doesn't care;
> Windows forbids it.

How do we go about finding out where that's happening?

>  and why it's started happening?
> 
> Nope.  The most likely cause when this pops up in tests that recently passed
> is that someone is trying to delete a temp file they noticed was left
> behind -- that always works on Linux, but on Windows the file absolutely
> must get closed first.  The Zope tests did leave some temp files behind
> before, but I don't know specifically which tests were responsible.

This seems to have started when I moved to using Python 2.2 for the tests...

> There:  that's enough clues so that *someone* knows the answer off the top
> of their head <wink>.

...Jeremy? ;-)

cheers,

Chris