[Python-Dev] fixing tests on windows
nnorwitz at gmail.com
Tue Apr 1 08:42:36 CEST 2008
The Windows buildbots are still failing because some tests keep files
opened. This causes subsequent tests which use the same file to fail.
Here is a recent run which had a failure early on:
I'm assuming the first failure (test_bufio) was due to an open file.
(Can't tell, no error msg.) That means the problem was in that test
or an earlier test. The only earlier tests are:
Of those tests, only some of them reference TESTFN which is the probable file:
I inspected test_mmap which had been modified somewhat recently and
tried to fix a few things. I'm not sure I helped and there are
probably more problems lurking.
This issue may not be noticed in the default test run. It definitely
occurs when the tests are run in a random order as they are on the
buildbots. Try running: ./python.exe ./Lib/test/regrtest.py -r
That should help provoke more errors.
As always, patches are greatly appreciated.
More information about the Python-Dev