[Python-checkins] gh-94205: Ensures all required DLLs are copied on Windows for underpth tests (GH-94206)

zooba webhook-mailer at python.org
Fri Jun 24 07:39:28 EDT 2022


https://github.com/python/cpython/commit/8d8ce130fd7790142cc7bf6685fc64b54aebf492
commit: 8d8ce130fd7790142cc7bf6685fc64b54aebf492
branch: 3.10
author: Steve Dower <steve.dower at python.org>
committer: zooba <steve.dower at microsoft.com>
date: 2022年06月24日T12:39:22+01:00
summary:
gh-94205: Ensures all required DLLs are copied on Windows for underpth tests (GH-94206)
files:
M Lib/test/test_site.py
diff --git a/Lib/test/test_site.py b/Lib/test/test_site.py
index fa74e7770ede2..aff3db5d9f49f 100644
--- a/Lib/test/test_site.py
+++ b/Lib/test/test_site.py
@@ -572,6 +572,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:


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /