Silence byte-compiler in two tests

* test/lisp/emacs-lisp/eieio-tests/eieio-test-methodinvoke.el:
* test/lisp/mail/mail-utils-tests.el
(mail-utils-tests-mail-rfc822-time-zone): Silence byte-compiler.
This commit is contained in:
Stefan Kangas 2021-12-06 22:05:57 +01:00
parent e637afce45
commit bed5af1ea3
2 changed files with 3 additions and 1 deletions

View file

@ -325,6 +325,7 @@
())
(with-suppressed-warnings ((obsolete defmethod)
(obsolete defgeneric)
(obsolete next-method-p)
(obsolete call-next-method))
(defmethod initialize-instance :after ((_this eitest-Jb) &rest _slots)

View file

@ -85,7 +85,8 @@
"foo@example.org\\|bar@example.org\\|baz@example.org")))
(ert-deftest mail-utils-tests-mail-rfc822-time-zone ()
(should (stringp (mail-rfc822-time-zone (current-time)))))
(with-suppressed-warnings ((obsolete mail-rfc822-time-zone))
(should (stringp (mail-rfc822-time-zone (current-time))))))
(ert-deftest mail-utils-test-mail-rfc822-date/contains-year ()
(should (string-match (rx " 20" digit digit " ")