From f7129d54b258cfaf5de374e7cc2c678c5bf490eb Mon Sep 17 00:00:00 2001 From: Robert Pluim Date: Tue, 11 Jan 2022 12:20:44 +0100 Subject: [PATCH] spelling-tests.el: trap error To: emacs-devel@gnu.org 'ispell-valid-dictionary-list' can signal an error, so guard against that. * test/lisp/so-long-tests/spelling-tests.el (so-long-spelling): Wrap check for ispell-valid-dictionary-list in condition-case. --- test/lisp/so-long-tests/spelling-tests.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/lisp/so-long-tests/spelling-tests.el b/test/lisp/so-long-tests/spelling-tests.el index eb1014dd8a..837ccd5600 100644 --- a/test/lisp/so-long-tests/spelling-tests.el +++ b/test/lisp/so-long-tests/spelling-tests.el @@ -40,7 +40,9 @@ (condition-case () (progn (ispell-check-version) t) (error nil)) - (member "british" (ispell-valid-dictionary-list))) + (condition-case () + (member "british" (ispell-valid-dictionary-list)) + (error nil))) (ert-deftest so-long-spelling () "Check the spelling in the source code." :tags '(:unstable) ;; It works for me, but I'm not sure about others. -- 2.34.0