]> git.eshelyaron.com Git - emacs.git/commitdiff
Better warning suppression in rx-tests
authorMattias Engdegård <mattiase@acm.org>
Mon, 9 Nov 2020 17:05:08 +0000 (18:05 +0100)
committerMattias Engdegård <mattiase@acm.org>
Mon, 9 Nov 2020 17:05:08 +0000 (18:05 +0100)
* 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.

test/lisp/emacs-lisp/rx-tests.el

index 91b0884d4a941f34f33a27c6b45aa061e96b5b66..d2e11cf06aa6b49d7c3ef1bee1c9a51df9acad4d 100644 (file)
 (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:.+$\\)")))