tim golden cggctimgoldenmeuk tim golden wrote steven bethard wrote sprints ran bunch similar errors running test suite windows vista box even tests properly cleaning teardown even tried putting sleeps long 1 second avail way get test suite run without errors stop windows search service fully disable icon overlays tortoisesvn close open folders chance boxes tests run running windows search service icon overlays enabled tortoisesvn anyone ideas get around problems id love hear seems like shouldnt disable services im sure im going help reason happens certain services desktop search tools notorious get file handles file_share_delete means file isnt actually removed deleted last handles closes see suggestion somewhere circumvent issue instead removing file need move temp wherever delete ill try knock test case see works ok confirm following test seems indicate local volume rename followed remove right thing even file_share_delete handle held thing presumably test_support grow remove_file something sort tjg import os sys import win32file filename test def rename_and_remove filename osrename filename filename deleted osremove filename deleted def remove_only filename osremove filename def test remove open filename wclose hfile win32filecreatefile filename win32filegeneric_read win32filefile_share_delete none win32fileopen_existing 0 0 try remove filename try open filename wclose except ioerror print couldnt recreate else print could recreate finally hfileclose try open filename wclose except ioerror print couldnt recreate else print could recreate __name__ __main__ print print work test remove_only print print work test rename_and_remove _______________________________________________ pythondev mailing list zvlllneumpythonorg httpmailpythonorgmailmanlistinfopythondev unsubscribe httpmailpythonorgmailmanoptionspythondevpythondev40tangomucom thu 07 aug 2008 053232 0100 pythondev fixing tests windows