aboutsummaryrefslogtreecommitdiffstats
path: root/test/automated/python-tests.el
diff options
context:
space:
mode:
authorFabián Ezequiel Gallina2015-08-21 22:34:39 -0300
committerFabián Ezequiel Gallina2015-08-21 22:34:39 -0300
commite2a5e3f87aba493623734dcf9b872e10c6077496 (patch)
tree05b2fe7b86cf9426711350116cdef3451d5687ab /test/automated/python-tests.el
parent49071a4afcc4e8b12a407d977cfad1db4d49f629 (diff)
downloademacs-e2a5e3f87aba493623734dcf9b872e10c6077496.tar.gz
emacs-e2a5e3f87aba493623734dcf9b872e10c6077496.zip
python.el: Ensure remote process-environment on non-interactive processes
* lisp/progmodes/python.el (python-shell-tramp-refresh-process-environment): New function. (python-shell-with-environment): Use it. * test/automated/python-tests.el (python-shell-with-environment-2): Update.
Diffstat (limited to 'test/automated/python-tests.el')
-rw-r--r--test/automated/python-tests.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/automated/python-tests.el b/test/automated/python-tests.el
index 1f8533f9b1a..e792b0f1a1a 100644
--- a/test/automated/python-tests.el
+++ b/test/automated/python-tests.el
@@ -2606,9 +2606,10 @@ Using `python-shell-interpreter' and
2606 (python-shell-with-environment 2606 (python-shell-with-environment
2607 (should (equal (python-shell-calculate-exec-path) 2607 (should (equal (python-shell-calculate-exec-path)
2608 '("/env/bin" "/path1" "/path2" "/remote1" "/remote2"))) 2608 '("/env/bin" "/path1" "/path2" "/remote1" "/remote2")))
2609 (let ((process-environment tramp-remote-process-environment)) 2609 (let ((process-environment (python-shell-calculate-process-environment)))
2610 (should (not (getenv "PYTHONHOME"))) 2610 (should (not (getenv "PYTHONHOME")))
2611 (should (string= (getenv "VIRTUAL_ENV") "/env")))) 2611 (should (string= (getenv "VIRTUAL_ENV") "/env"))
2612 (should (equal tramp-remote-process-environment process-environment))))
2612 (should (equal tramp-remote-process-environment original-process-environment)))) 2613 (should (equal tramp-remote-process-environment original-process-environment))))
2613 2614
2614(ert-deftest python-shell-with-environment-3 () 2615(ert-deftest python-shell-with-environment-3 ()