From 5b178efd85a65dd44c33058948ad5fe18b580067 Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Mon, 12 Dec 2022 22:44:55 +0100 Subject: [PATCH] ; Adjust eglot test to recent autopep8/pycodestyle * test/lisp/progmodes/eglot-tests.el (python-autopep-formatting): Support more recent autopep8/pycodestyle. --- test/lisp/progmodes/eglot-tests.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.39.2