From 37cb129979ff1342e1b567a6f5307a0b1e1ff962 Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Thu, 11 Jul 2019 20:01:57 +0200 Subject: [PATCH] * test/lisp/format-spec-tests.el (test-format-unknown): Use `should-error'. --- test/lisp/format-spec-tests.el | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/test/lisp/format-spec-tests.el b/test/lisp/format-spec-tests.el index e831657a3e6..6fbfaaad83a 100644 --- a/test/lisp/format-spec-tests.el +++ b/test/lisp/format-spec-tests.el @@ -31,10 +31,7 @@ "foo bar zot"))) (ert-deftest test-format-unknown () - (should (eq (condition-case _ - (format-spec "foo %b %z zot" '((?b . "bar"))) - (error :error)) - :error)) + (should-error (format-spec "foo %b %z zot" '((?b . "bar")))) (should (equal (format-spec "foo %b %z zot" '((?b . "bar")) t) "foo bar %z zot")) (should (equal (format-spec "foo %b %z %% zot" '((?b . "bar")) t) -- 2.39.5