mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
gh-94205: Ensures all required DLLs are copied on Windows for underpth tests (GH-94206)
This commit is contained in:
parent
92d32b9f72
commit
8d8ce130fd
1 changed files with 2 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue