mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-23 07:19:15 +00:00
Use same Python binary for test as in python mode (bug#70815)
* test/lisp/progmodes/python-tests.el (python-tests-get-shell-interpreter): Try Python executable names in the same order as we do for `python-shell-interpreter`, so that we run the test with the one is most likely to be used.
This commit is contained in:
parent
8b70093b36
commit
9c7de10079
@ -3762,7 +3762,9 @@ If env string EMACS_PYTHON_INTERPRETER exists, use it as preferred one."
|
||||
(or (executable-find interpreter)
|
||||
(error "Couldn't find EMACS_PYTHON_INTERPRETER(%s) in path"
|
||||
interpreter)))
|
||||
(cl-some #'executable-find '("python" "python3" "python2"))))))
|
||||
;; Use the same order as for the default value of
|
||||
;; `python-shell-interpreter'.
|
||||
(cl-some #'executable-find '("python3" "python" "python2"))))))
|
||||
|
||||
(ert-deftest python-shell-get-process-name-1 ()
|
||||
"Check process name calculation sans `buffer-file-name'."
|
||||
|
Loading…
Reference in New Issue
Block a user