summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-06-24 11:20:16 (GMT)
committerGitHub <noreply@github.com>2022-06-24 11:20:16 (GMT)
commit41e4b426ce8d8298c3f2360cb506d229381e0f84 (patch)
tree196d6c5a27fc78b96288dfa23267c41efca90bf0
parent4d2c972ff7d84ec75b23dcdda478714655538d34 (diff)
downloadcpython-41e4b426ce8d8298c3f2360cb506d229381e0f84.zip
cpython-41e4b426ce8d8298c3f2360cb506d229381e0f84.tar.gz
cpython-41e4b426ce8d8298c3f2360cb506d229381e0f84.tar.bz2
gh-94205: Ensures all required DLLs are copied on Windows for underpth tests (GH-94206)
(cherry picked from commit 51fd4de101349bbea8afa4e212489f4b87e3a99b) Co-authored-by: Steve Dower <steve.dower@python.org>
-rw-r--r--Lib/test/test_site.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_site.py b/Lib/test/test_site.py
index dd018d6..9a148fe 100644
--- a/Lib/test/test_site.py
+++ b/Lib/test/test_site.py
@@ -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: