Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-29763: Use support.unlink instead of os.unlink #624

Merged
merged 1 commit into from Mar 12, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions Lib/test/test_site.py
Expand Up @@ -501,15 +501,15 @@ def _create_underpth_exe(self, lines):
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):
Expand Down