zturner added a comment. How about add a function to `lldbsuite\support\fs.py`? def remove_file(file, num_retries, sleep_duration): Then just call this everywhere you need to. Could even nuke this whole `RemoveTempFile` method. http://reviews.llvm.org/D18912