Author tim.golden
Recipients asvetlov, brian.curtin, flox, jafo, jaraco, loewis, techtonik, tim.golden
Date 2010-04-09.08:34:47
SpamBayes Score 1.64e-07
Marked as misclassified No
Message-id <4BBEE6A3.9070001@timgolden.me.uk>
In-reply-to <1270800695.72.0.626647694584.issue7443@psf.upfronthosting.co.za>
Content
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.
Files
File name Uploaded
watch_dir.py tim.golden, 2010-04-09.08:34:46
History
Date User Action Args
2010-04-09 08:34:49tim.goldensetrecipients: + tim.golden, loewis, jafo, jaraco, techtonik, brian.curtin, asvetlov, flox
2010-04-09 08:34:47tim.goldenlinkissue7443 messages
2010-04-09 08:34:47tim.goldencreate