diff options
-rw-r--r-- | test/lisp/progmodes/python-tests.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lisp/progmodes/python-tests.el b/test/lisp/progmodes/python-tests.el index 2f4c2fb849d..3b75e81afee 100644 --- a/test/lisp/progmodes/python-tests.el +++ b/test/lisp/progmodes/python-tests.el @@ -2612,7 +2612,7 @@ Using `python-shell-interpreter' and "Test no side-effects on `process-environment'." (let* ((python-shell-process-environment '("TESTVAR1=value1" "TESTVAR2=value2")) - (python-shell-virtualenv-root "/env") + (python-shell-virtualenv-root (or (getenv "VIRTUAL_ENV") "/env")) (python-shell-unbuffered t) (python-shell-extra-pythonpaths'("/path1" "/path2")) (original-process-environment (copy-sequence process-environment))) |