tim golden cggctimgoldenmeuk trent nelson wrote 1 given python_dexe always use test directory hash entire python process path unique given python instance guard several build runs parallel presumably 2 make sure every time test wants temp file gets unique one directory sounds like testfn modification would take care tests using testfn quite present testfn constant one set test runs would need function call change every test within run testfn preferred approach tests using tempfile hardcoding file names would changed use instead part problem dont know preferred approach merely widely universally used likely cause locking problems seeing anythings rolling tempfile solution im inclined leave alone someones pointed elsewhere temp directories almost certainly monitored 3 order address tests either call test_support methods removing filesdirectories call osunlinkremove ever needs done make noops windows error occurs im reluctant monkey patch osunlinkremove id rather provide encourage use test_supportremove_test_file function even context manager failing silently needs 4 end regrtestpy run create suspended arbitrary process ie explorerexe hijack main thread context process inject routine ie overwrite thread contexts instruction pointers takes care removing temporary directory used testing patiently retrying failures occur rogue processes also accessing files stop resume thread exiting python ok scary interesting site though snip guess depends much effort want put cleaning test directory really ensuring tests get clean area unique file names run easy part yes im trying desperately hard stick narrow remit getting tests run consistently face messy filelocking semantics windows really dont want wade minor minefield making tests run consistent temp file semantics may tjg _______________________________________________ pythondev mailing list zvlllneumpythonorg httpmailpythonorgmailmanlistinfopythondev unsubscribe httpmailpythonorgmailmanoptionspythondevpythondev40tangomucom thu 07 aug 2008 082907 0100 pythondev fixing tests windows