From fdab190515715575731bf1536ba5d862514316a8 Mon Sep 17 00:00:00 2001 From: neonene <53406459+neonene@users.noreply.github.com> Date: Mon, 28 Mar 2022 12:20:44 +0900 Subject: [PATCH] Copy pgort140.dll to temp dir --- Lib/test/test_embed.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Lib/test/test_embed.py b/Lib/test/test_embed.py index f0c88de68e89eb..7af72729d0314d 100644 --- a/Lib/test/test_embed.py +++ b/Lib/test/test_embed.py @@ -1215,6 +1215,10 @@ def tmpdir_with_python(self, subdir=None): dll3_copy = os.path.join(tmpdir, os.path.basename(dll3)) shutil.copyfile(dll, dll_copy) shutil.copyfile(dll3, dll3_copy) + pgort = os.path.join(os.path.dirname(self.test_exe), 'pgort140.dll') + if os.path.exists(pgort): + pgort_copy = os.path.join(tmpdir, os.path.basename(pgort)) + shutil.copyfile(pgort, pgort_copy) # Copy Python program exec_copy = os.path.join(tmpdir, os.path.basename(self.test_exe))