From: Stefan Kangas Date: Mon, 12 Dec 2022 21:44:55 +0000 (+0100) Subject: ; Adjust eglot test to recent autopep8/pycodestyle X-Git-Tag: emacs-29.0.90~1219 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5b178efd85a;p=emacs.git ; Adjust eglot test to recent autopep8/pycodestyle * test/lisp/progmodes/eglot-tests.el (python-autopep-formatting): Support more recent autopep8/pycodestyle. --- diff --git a/test/lisp/progmodes/eglot-tests.el b/test/lisp/progmodes/eglot-tests.el index 32eefd778fe..04ecd7891ab 100644 --- a/test/lisp/progmodes/eglot-tests.el +++ b/test/lisp/progmodes/eglot-tests.el @@ -673,7 +673,9 @@ pylsp prefers autopep over yafp, despite its README stating the contrary." (eglot-format (line-beginning-position) (line-end-position)) (should (looking-at "ss")) (should - (string= (buffer-string) "def a():pass\n\n\ndef b(): pass\n")) + (or (string= (buffer-string) "def a():pass\n\n\ndef b(): pass\n") + ;; autopep8 2.0.0 (pycodestyle: 2.9.1) + (string= (buffer-string) "def a():pass\n\ndef b(): pass"))) ;; now format the whole buffer (eglot-format-buffer) (should