From 7ab2bc4a18022918f95fa979c4b9e0a6e7092718 Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Fri, 14 Jan 2022 15:54:46 +0100 Subject: [PATCH] Support yapf3 in python-yapf-formatting tests * eglot-tests.el (python-yapf-formatting): Look for a yapf3 executable as well as the yapf one. --- eglot-tests.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eglot-tests.el b/eglot-tests.el index d2774644..f49d912b 100644 --- a/eglot-tests.el +++ b/eglot-tests.el @@ -678,7 +678,8 @@ pyls prefers autopep over yafp, despite its README stating the contrary." "Test formatting in the pyls python LSP." (skip-unless (and (executable-find "pyls") (not (executable-find "autopep8")) - (executable-find "yapf"))) + (or (executable-find "yapf") + (executable-find "yapf3")))) (eglot--with-fixture `(("project" . (("something.py" . "def a():pass\ndef b():pass")))) (with-current-buffer