emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-29 5b178efd85: ; Adjust eglot test to recent autopep8/pycodestyle


From: Stefan Kangas
Subject: emacs-29 5b178efd85: ; Adjust eglot test to recent autopep8/pycodestyle
Date: Mon, 12 Dec 2022 16:45:15 -0500 (EST)

branch: emacs-29
commit 5b178efd85a65dd44c33058948ad5fe18b580067
Author: Stefan Kangas <stefankangas@gmail.com>
Commit: Stefan Kangas <stefankangas@gmail.com>

    ; 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 32eefd778f..04ecd7891a 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]