Skip to content

Commit

Permalink
gh-94205: Ensures all required DLLs are copied on Windows for underpt…
Browse files Browse the repository at this point in the history
…h tests (GH-94206)

(cherry picked from commit 51fd4de)

Co-authored-by: Steve Dower <steve.dower@python.org>
  • Loading branch information
miss-islington and zooba committed Jun 24, 2022
1 parent 4d2c972 commit 41e4b42
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Lib/test/test_site.py
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,8 @@ def _create_underpth_exe(self, lines, exe_pth=True):
dll_file = os.path.join(temp_dir, os.path.split(dll_src_file)[1])
shutil.copy(sys.executable, exe_file)
shutil.copy(dll_src_file, dll_file)
for fn in glob.glob(os.path.join(os.path.split(dll_src_file)[0], "vcruntime*.dll")):
shutil.copy(fn, os.path.join(temp_dir, os.path.split(fn)[1]))
if exe_pth:
_pth_file = os.path.splitext(exe_file)[0] + '._pth'
else:
Expand Down

0 comments on commit 41e4b42

Please sign in to comment.