emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master d8a31b0: Better warning suppression in rx-tests


From: Mattias Engdegård
Subject: master d8a31b0: Better warning suppression in rx-tests
Date: Mon, 9 Nov 2020 12:10:23 -0500 (EST)

branch: master
commit d8a31b0c03f93976027722324b173e880b402f34
Author: Mattias Engdegård <mattiase@acm.org>
Commit: Mattias Engdegård <mattiase@acm.org>

    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.
---
 test/lisp/emacs-lisp/rx-tests.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/lisp/emacs-lisp/rx-tests.el b/test/lisp/emacs-lisp/rx-tests.el
index 91b0884..d2e11cf 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:.+$\\)")))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]