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

Tim Peters tim@zope.com
Thu, 19 Dec 2002 23:44:23 -0500


[Chris Withers]
> Does 2>&1 work on windows?

On Windows flavors whose native shell is cmd.exe (NT, 2K, XP), but not on
those with command.com (9x, ME).

> ...
> Hmmm... is there not something that could be done at the C level
> in python's  fiel deletion code that closes the file before it's
> deleted?

We're running Python 2.2.2; the C code for that is what it is.

> ...
> Hmmm... I appear to be lacking in Zen, how would one go about
> investigating whether or not this was the problem?

Dig into the test line by line until understanding the cause of the problem.
It's not Zen that's lacking, it's someone to do that work; leaving a file
open isn't a "general principle" kind of problem, it's some path in the code
that left a file open.  In my experience, such paths are sometimes
exceedingly well hidden, as various subsystems of tests 8 levels deep open
and close files as side effects of setup and teardown methods, and two dozen
classes all have .close() methods and it's impossible to guess which one may
be intended by x.close() unless you know a lot about x.

> ...
> Hmmm... did this code always exhibit these problems under this
> version of python or has there been a code chaneg that started
> triggering it?

Sorry, no idea.  When did you start seeing it happen?  I believe
checkReconnectReadOnly is a relatively new test, and also that adding the
ZEO tests to the general test mix is also a relatively new thing.