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:
parent
575b0681d9
commit
d8a31b0c03
1 changed files with 1 additions and 1 deletions
|
@ -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:.+$\\)")))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue