Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions tests/PYME/IO/test_cluster_spooler.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,11 @@ def teardown_module():
proc.kill()

print('Killed all servers')

shutil.rmtree(tmp_root)
def _wait_for_poll_exit(func, path, _):
# wait for the server process to exit and release the file lock before we try to delete the spooler dir
import time
time.sleep(1)
shutil.rmtree(tmp_root, onerror=_wait_for_poll_exit)



Expand Down
Loading