From eeaa18ddeae5c290308d4402ee1891cb9849bc60 Mon Sep 17 00:00:00 2001 From: Vinay Sajip Date: Wed, 19 Jul 2023 10:56:28 +0100 Subject: [PATCH] Fix #204: Use symlinks in venv creation during test. --- tests/test_scripts.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_scripts.py b/tests/test_scripts.py index 9ec1d43..2765d63 100644 --- a/tests/test_scripts.py +++ b/tests/test_scripts.py @@ -112,7 +112,8 @@ def test_custom_shebang(self): bindir = os.path.join(dstdir, 'bin') maker = ScriptMaker(self.maker.source_dir, bindir, add_launchers=False) - venv.create(dstdir) + # See issue #204. Changed to use symlinks on POSIX + venv.create(dstdir, symlinks=(os.name != 'nt')) maker.executable = os.path.join(bindir, 'python') filenames = maker.make('script8.py') p = subprocess.Popen(filenames[0], shell=True,