projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff9b04f
)
Suppress obsoletion warning in test of obsolete rx function
author
Mattias Engdegård
<mattiase@acm.org>
Tue, 6 Oct 2020 12:22:57 +0000
(14:22 +0200)
committer
Mattias Engdegård
<mattiase@acm.org>
Tue, 6 Oct 2020 12:22:57 +0000
(14:22 +0200)
* test/lisp/emacs-lisp/rx-tests.el (rx-compat): Add byte-compilation
warning suppression.
test/lisp/emacs-lisp/rx-tests.el
patch
|
blob
|
history
diff --git
a/test/lisp/emacs-lisp/rx-tests.el
b/test/lisp/emacs-lisp/rx-tests.el
index 3b01d89dbab815da1713ae98a8d5c56aefb3e9ea..59d8c600a20c3c5f4ede8387b9efc2fe36fb7b55 100644
(file)
--- a/
test/lisp/emacs-lisp/rx-tests.el
+++ b/
test/lisp/emacs-lisp/rx-tests.el
@@
-539,6
+539,9
@@
(ert-deftest rx-compat ()
"Test old symbol retained for compatibility (bug#37517)."
- (should (equal (rx-submatch-n '(group-n 3 (+ nonl) eol)) "\\(?3:.+$\\)")))
+ (should (equal
+ (with-suppressed-warnings ((obsolete rx-submatch-n))
+ (rx-submatch-n '(group-n 3 (+ nonl) eol)))
+ "\\(?3:.+$\\)")))
(provide 'rx-tests)