]> git.eshelyaron.com Git - emacs.git/commitdiff
Silence byte-compiler in two tests
authorStefan Kangas <stefan@marxist.se>
Mon, 6 Dec 2021 21:05:57 +0000 (22:05 +0100)
committerStefan Kangas <stefan@marxist.se>
Mon, 6 Dec 2021 21:19:58 +0000 (22:19 +0100)
* 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.

test/lisp/emacs-lisp/eieio-tests/eieio-test-methodinvoke.el
test/lisp/mail/mail-utils-tests.el

index ee52d831d69fa5137ba871aa01b28594aa90a2b2..e881e46a2d1ec3dd101925ba938c7bb85ee96d8d 100644 (file)
   ())
 
 (with-suppressed-warnings ((obsolete defmethod)
+                           (obsolete defgeneric)
                            (obsolete next-method-p)
                            (obsolete call-next-method))
   (defmethod initialize-instance :after ((_this eitest-Jb) &rest _slots)
index 5b54f2440c7ddd57d0795e34568332c5c8874469..f75de5c620c8c55aab8ad30e5e86ef290b6824b8 100644 (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 " ")