]> git.eshelyaron.com Git - emacs.git/commitdiff
Run python test if the python executable is found
authorTino Calancha <tino.calancha@gmail.com>
Tue, 15 May 2018 00:03:02 +0000 (09:03 +0900)
committerTino Calancha <tino.calancha@gmail.com>
Tue, 15 May 2018 00:03:02 +0000 (09:03 +0900)
* test/lisp/progmodes/python-tests.el (python-tests--bug31398):
Skip test when executable python is no found.

test/lisp/progmodes/python-tests.el

index dd1c45914e2b96845173d9f069433ac8accb89e6..1c4d22d72faf029600ed08333a482c7cc4211a48 100644 (file)
@@ -5355,6 +5355,7 @@ buffer with overlapping strings."
 ;; After call `run-python' the buffer running the python process is current.
 (ert-deftest python-tests--bug31398 ()
   "Test for https://debbugs.gnu.org/31398 ."
+  (skip-unless (executable-find python-tests-shell-interpreter))
   (let ((buffer (process-buffer (run-python nil nil 'show))))
     (should (eq buffer (current-buffer)))
     (pop-to-buffer (other-buffer))