Skip to content

Commit

Permalink
Try to make hover-multiline-doc-locus test pass on Travis
Browse files Browse the repository at this point in the history
A batch emacs apparently runs with a frame-width of 10

   $ emacs -Q --batch --eval '(princ (frame-width))'
   10

This could possibly not be enough, for the hover-multiline-doc-locus
test, which uses pyls docstrings, to avoid truncation of
"datetime(...)" into "datetim...".  The failure doesn't happen
locally, but changing the assertion to check one character less isn't
very problematic.

* eglot-tests.el (hover-multiline-doc-locus): Try to make test
pass on Travis.
  • Loading branch information
joaotavora committed May 27, 2020
1 parent a807b4f commit 2b16952
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eglot-tests.el
Original file line number Diff line number Diff line change
Expand Up @@ -576,14 +576,14 @@ def foobazquuz(d, e, f): pass
(setq-local eldoc-echo-area-use-multiline-p nil)
(eglot-eldoc-function)
(while (not eldoc-last-message) (accept-process-output nil 0.1))
(should (string-match "datetime" eldoc-last-message))
(should (string-match "datetim" eldoc-last-message))
(should (not (cl-find ?\n eldoc-last-message)))
;; multi-line
(setq eldoc-last-message nil)
(setq-local eldoc-echo-area-use-multiline-p t)
(eglot-eldoc-function)
(while (not eldoc-last-message) (accept-process-output nil 0.1))
(should (string-match "datetime" eldoc-last-message))
(should (string-match "datetim" eldoc-last-message))
(should (cl-find ?\n eldoc-last-message)))))

(ert-deftest python-autopep-formatting ()
Expand Down

0 comments on commit 2b16952

Please sign in to comment.