diff options
author | Steve Dower <steve.dower@python.org> | 2022-06-24 10:48:53 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-24 10:48:53 (GMT) |
commit | 51fd4de101349bbea8afa4e212489f4b87e3a99b (patch) | |
tree | e9ae7fce872f32b4274f808aefbc8050a315e599 /Lib | |
parent | 8625802d854ec0152177a6ff0ac092e0e3ff98a5 (diff) | |
download | cpython-51fd4de101349bbea8afa4e212489f4b87e3a99b.zip cpython-51fd4de101349bbea8afa4e212489f4b87e3a99b.tar.gz cpython-51fd4de101349bbea8afa4e212489f4b87e3a99b.tar.bz2 |
gh-94205: Ensures all required DLLs are copied on Windows for underpth tests (GH-94206)
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_site.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_site.py b/Lib/test/test_site.py index 6822579..9e701fd 100644 --- a/Lib/test/test_site.py +++ b/Lib/test/test_site.py @@ -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: |