Message102698
In one window run the attached script (assumes you have pywin32 installed) with a parameter of the directory the TESTFN file will end up in. Then run, eg, test_zipfile in another window. For me:
c:\temp> watch_dir.py C:\work_in_progress\make-snapshots\trunk\python\Lib
C:\work_in_progress\make-snapshots\trunk\python\Lib> ..\pcbuild\python.exe -m test.test_zipfile
Obviously, you'd have to change the path to be wherever you're running the test suite from.
The watch_dir script sits there looking for file activity, then takes and releases a delete-share handle on the file. It's enough to disrupt certain tests (such as test_zipfile) pretty much every time. Other tests are affected less, or only the first few times. Not sure why, but it's certainly enough to reproduce the general effect of TortoiseSVN or indexer or virus checker. |
File name |
Uploaded |
watch_dir.py
|
tim.golden,
2010-04-09.08:34:46
|
|
Date |
User |
Action |
Args |
2010-04-09 08:34:49 | tim.golden | set | recipients:
+ tim.golden, loewis, jafo, jaraco, techtonik, brian.curtin, asvetlov, flox |
2010-04-09 08:34:47 | tim.golden | link | issue7443 messages |
2010-04-09 08:34:47 | tim.golden | create | |
|