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:
parent
58b8ed8b55
commit
5b178efd85
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user