Skip to content

Commit c766feb

Browse files
committed
Fix eldoc test in emacs28
1 parent ba7470d commit c766feb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/elpy-module-eldoc-test.el

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@
99
(elpy-module-eldoc 'buffer-init)
1010

1111
(should eldoc-mode)
12-
(should (eq eldoc-documentation-function 'elpy-eldoc-documentation))))
12+
13+
(should
14+
(if (boundp 'eldoc-documentation-functions)
15+
(member 'elpy-eldoc-documentation eldoc-documentation-functions)
16+
(eq eldoc-documentation-function 'elpy-eldoc-documentation)))))
1317

1418
(ert-deftest elpy-module-eldoc-buffer-stop ()
1519
(elpy-testcase ()

0 commit comments

Comments
 (0)