summaryrefslogtreecommitdiff
path: root/test/lisp/emacs-lisp/rx-tests.el
diff options
context:
space:
mode:
authorMattias EngdegÄrd <mattiase@acm.org>2020-11-09 18:05:08 +0100
committerMattias EngdegÄrd <mattiase@acm.org>2020-11-09 18:05:08 +0100
commitd8a31b0c03f93976027722324b173e880b402f34 (patch)
tree7d07f51f684d5b4244f5b7ff493aa9c778d2d439 /test/lisp/emacs-lisp/rx-tests.el
parent575b0681d926463960fc00d1e33decaa71d5c956 (diff)
downloademacs-d8a31b0c03f93976027722324b173e880b402f34.tar.gz
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.
Diffstat (limited to 'test/lisp/emacs-lisp/rx-tests.el')
-rw-r--r--test/lisp/emacs-lisp/rx-tests.el2
1 files changed, 1 insertions, 1 deletions
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:.+$\\)")))