From: Steve Dower Date: Fri, 24 Jun 2022 11:39:22 +0000 (+0100) Subject: gh-94205: Ensures all required DLLs are copied on Windows for underpth tests (GH... X-Git-Tag: v3.10.6~128 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8d8ce130fd7790142cc7bf6685fc64b54aebf492;p=thirdparty%2FPython%2Fcpython.git gh-94205: Ensures all required DLLs are copied on Windows for underpth tests (GH-94206) --- diff --git a/Lib/test/test_site.py b/Lib/test/test_site.py index fa74e7770ede..aff3db5d9f49 100644 --- a/Lib/test/test_site.py +++ b/Lib/test/test_site.py @@ -572,6 +572,8 @@ class _pthFileTests(unittest.TestCase): 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: