Index: packages/Python/lldbsuite/test/lldbtest.py =================================================================== --- packages/Python/lldbsuite/test/lldbtest.py +++ packages/Python/lldbsuite/test/lldbtest.py @@ -1996,4 +1996,10 @@ @classmethod def RemoveTempFile(cls, file): if os.path.exists(file): - os.remove(file) + try: + os.remove(file) + except: + # On Windows, we can sometimes need a retry because antimalware may + # briefly hold the file open. + time.sleep(0.5) + os.remove(file)