diff --git a/test/lisp/textmodes/ispell-tests/ispell-aspell-tests.el b/test/lisp/textmodes/ispell-tests/ispell-aspell-tests.el index 3a442c764d9..cd31cd52d76 100644 --- a/test/lisp/textmodes/ispell-tests/ispell-aspell-tests.el +++ b/test/lisp/textmodes/ispell-tests/ispell-aspell-tests.el @@ -34,7 +34,7 @@ (file-name-directory load-file-name)))) (load "ispell-tests-common")) -(declare-function letopt (expand-file-name "ispell-tests-common" source-directory) t t) +(declare-function letopt "ispell-tests-common" t t) (ert-deftest ispell/aspell/ispell-check-version/works () "Test that aspell is correctly detected." diff --git a/test/lisp/textmodes/ispell-tests/ispell-tests.el b/test/lisp/textmodes/ispell-tests/ispell-tests.el index d4012fb5218..d292b390860 100644 --- a/test/lisp/textmodes/ispell-tests/ispell-tests.el +++ b/test/lisp/textmodes/ispell-tests/ispell-tests.el @@ -32,7 +32,7 @@ (file-name-directory load-file-name)))) (load "ispell-tests-common")) -(declare-function letopt "ispell-tests-common") +(declare-function letopt "ispell-tests-common" t t) (declare-function ispell-tests--some-backend "ispell-tests-common" t t) (declare-function ispell-tests--some-backend-available-p "ispell-tests-common" t t)