Commit 93710c15 authored by Zachary Ware's avatar Zachary Ware Committed by GitHub

bpo-29763: Use support.unlink instead of os.unlink (GH-624)

support.unlink waits for the files to be removed before returning
parent 482f7a27
......@@ -501,15 +501,15 @@ class StartupImportTests(unittest.TestCase):
print(line, file=f)
return exe_file
except:
os.unlink(_pth_file)
os.unlink(exe_file)
test.support.unlink(_pth_file)
test.support.unlink(exe_file)
raise
@classmethod
def _cleanup_underpth_exe(self, exe_file):
_pth_file = os.path.splitext(exe_file)[0] + '._pth'
os.unlink(_pth_file)
os.unlink(exe_file)
test.support.unlink(_pth_file)
test.support.unlink(exe_file)
@classmethod
def _calc_sys_path_for_underpth_nosite(self, sys_prefix, lines):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment