diff options
| author | Tino Calancha | 2017-04-04 15:16:15 +0900 |
|---|---|---|
| committer | Tino Calancha | 2017-04-04 15:16:15 +0900 |
| commit | 19b92cdfb04a025037d7388954b64468d6f54462 (patch) | |
| tree | 18ef2f8939928c178a1fd57a61cd84a948efde54 /test/lisp/progmodes/python-tests.el | |
| parent | 3887c54544bc2e5f8c2e7c12973887f9b2b88c40 (diff) | |
| download | emacs-19b92cdfb04a025037d7388954b64468d6f54462.tar.gz emacs-19b92cdfb04a025037d7388954b64468d6f54462.zip | |
Fix a test in python-test.el
Fix a test that breaks the test suite when it is run within a
virtual environment.
See following link for details:
https://lists.gnu.org/archive/html/emacs-devel/2017-03/msg00857.html
* test/lisp/progmodes/python-tests.el
(python-shell-calculate-process-environment-7): Bind
python-shell-virtualenv-root to VIRTUAL_ENV when this var is set; otherwise
bind it to '/env'.
Diffstat (limited to 'test/lisp/progmodes/python-tests.el')
| -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 | |||
| 2612 | "Test no side-effects on `process-environment'." | 2612 | "Test no side-effects on `process-environment'." |
| 2613 | (let* ((python-shell-process-environment | 2613 | (let* ((python-shell-process-environment |
| 2614 | '("TESTVAR1=value1" "TESTVAR2=value2")) | 2614 | '("TESTVAR1=value1" "TESTVAR2=value2")) |
| 2615 | (python-shell-virtualenv-root "/env") | 2615 | (python-shell-virtualenv-root (or (getenv "VIRTUAL_ENV") "/env")) |
| 2616 | (python-shell-unbuffered t) | 2616 | (python-shell-unbuffered t) |
| 2617 | (python-shell-extra-pythonpaths'("/path1" "/path2")) | 2617 | (python-shell-extra-pythonpaths'("/path1" "/path2")) |
| 2618 | (original-process-environment (copy-sequence process-environment))) | 2618 | (original-process-environment (copy-sequence process-environment))) |