1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-01 08:17:38 +00:00

; Adjust eglot test to recent autopep8/pycodestyle

* test/lisp/progmodes/eglot-tests.el (python-autopep-formatting):
Support more recent autopep8/pycodestyle.
This commit is contained in:
Stefan Kangas 2022-12-12 22:44:55 +01:00
parent 58b8ed8b55
commit 5b178efd85

View File

@ -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