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.
This commit is contained in:
Mattias Engdegård 2020-11-09 18:05:08 +01:00
parent 575b0681d9
commit d8a31b0c03

View file

@ -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:.+$\\)")))