; 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
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue