]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-94205: Ensures all required DLLs are copied on Windows for underpth tests (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 24 Jun 2022 11:20:16 +0000 (04:20 -0700)
committerGitHub <noreply@github.com>
Fri, 24 Jun 2022 11:20:16 +0000 (04:20 -0700)
(cherry picked from commit 51fd4de101349bbea8afa4e212489f4b87e3a99b)

Co-authored-by: Steve Dower <steve.dower@python.org>
Lib/test/test_site.py

index dd018d6b38a864d7478f3d8acb139a5bdacccc0b..9a148fe2f4e98cdbc5b7e10bef4aa9f84edb2255 100644 (file)
@@ -571,6 +571,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: