From: Mattias EngdegÄrd Date: Mon, 9 Nov 2020 17:05:08 +0000 (+0100) Subject: Better warning suppression in rx-tests X-Git-Tag: emacs-28.0.90~5205 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d8a31b0c03f93976027722324b173e880b402f34;p=emacs.git Better warning suppression in rx-tests * test/lisp/emacs-lisp/rx-tests.el (rx-compat): Use with-no-warnings instead of with-suppressed-warnings which complains when running the test interactively. --- diff --git a/test/lisp/emacs-lisp/rx-tests.el b/test/lisp/emacs-lisp/rx-tests.el index 91b0884d4a9..d2e11cf06aa 100644 --- a/test/lisp/emacs-lisp/rx-tests.el +++ b/test/lisp/emacs-lisp/rx-tests.el @@ -544,7 +544,7 @@ (ert-deftest rx-compat () "Test old symbol retained for compatibility (bug#37517)." (should (equal - (with-suppressed-warnings ((obsolete rx-submatch-n)) + (with-no-warnings (rx-submatch-n '(group-n 3 (+ nonl) eol))) "\\(?3:.+$\\)")))