24 lines
911 B
Diff
24 lines
911 B
Diff
|
---
|
||
|
pytest_virtualenv.py | 2 +-
|
||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
||
|
--- a/pytest_virtualenv.py
|
||
|
+++ b/pytest_virtualenv.py
|
||
|
@@ -21,7 +21,7 @@ class FixtureConfig(Config):
|
||
|
|
||
|
# Default values for system resource locations - patch this to change defaults
|
||
|
# Can be a string or list of them
|
||
|
-DEFAULT_VIRTUALENV_FIXTURE_EXECUTABLE = [sys.executable, '-m', 'virtualenv']
|
||
|
+DEFAULT_VIRTUALENV_FIXTURE_EXECUTABLE = [sys.executable, '-m', 'venv']
|
||
|
|
||
|
CONFIG = FixtureConfig(
|
||
|
virtualenv_executable=os.getenv('VIRTUALENV_FIXTURE_EXECUTABLE', DEFAULT_VIRTUALENV_FIXTURE_EXECUTABLE),
|
||
|
@@ -137,7 +137,6 @@ class VirtualEnv(Workspace):
|
||
|
cmd = [self.virtualenv_cmd]
|
||
|
else:
|
||
|
cmd = list(self.virtualenv_cmd)
|
||
|
- cmd.extend(['-p', python or cmdline.get_real_python_executable()])
|
||
|
cmd.extend(self.args)
|
||
|
cmd.append(str(self.virtualenv))
|
||
|
self.run(cmd)
|