mirror of
https://github.com/unclebob/mutator.git
synced 2026-11-26 18:58:50 +00:00
Why: delete_tree walked the worker tree and called rmdir once. Gradle can still be flushing a test report then, so a directory that looked empty raises OSError [Errno 39] Directory not empty (or a file vanishes before unlink) and the whole mutation run aborts. What: delete_tree retries the walk, with injectable sleep and attempt count so tests do not wait. A vanished file is unlinked with missing_ok. Symlinks are still unlinked, never followed into the real project. Proof: six new tests (late file, vanished file, missing path, regular file, symlink left alone, exhausted retries re-raise). 78 tests were green before; 84 pass now. crapper: delete_tree 5.0, _delete_once 5.0, every function in workers.py under 10. dryer: no candidates. mutator on the nine changed sites: 9 killed, 0 survived, 0 uncovered.