Skip to content

Commit 41e4b42

Browse files
gh-94205: Ensures all required DLLs are copied on Windows for underpth tests (GH-94206)
(cherry picked from commit 51fd4de) Co-authored-by: Steve Dower <[email protected]>
1 parent 4d2c972 commit 41e4b42

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Lib/test/test_site.py

+2
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,8 @@ def _create_underpth_exe(self, lines, exe_pth=True):
571571
dll_file = os.path.join(temp_dir, os.path.split(dll_src_file)[1])
572572
shutil.copy(sys.executable, exe_file)
573573
shutil.copy(dll_src_file, dll_file)
574+
for fn in glob.glob(os.path.join(os.path.split(dll_src_file)[0], "vcruntime*.dll")):
575+
shutil.copy(fn, os.path.join(temp_dir, os.path.split(fn)[1]))
574576
if exe_pth:
575577
_pth_file = os.path.splitext(exe_file)[0] + '._pth'
576578
else:

0 commit comments

Comments
 (0)