diff --git a/Lib/test/test_embed.py b/Lib/test/test_embed.py index f0c88de68e89eb1..7af72729d0314d3 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))