]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-94205: Ensures all required DLLs are copied on Windows for underpth tests (GH...
authorSteve Dower <steve.dower@python.org>
Fri, 24 Jun 2022 10:48:53 +0000 (11:48 +0100)
committerGitHub <noreply@github.com>
Fri, 24 Jun 2022 10:48:53 +0000 (11:48 +0100)
Lib/test/test_site.py

index 6822579ad2a50d6c6453d21a776acdebe9a42eff..9e701fd847acdf9fad35db944d3fd50169d195bf 100644 (file)
@@ -570,6 +570,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: