[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#36568: with-suppress-warnings not working in seq-tests.el
From: |
Lars Ingebrigtsen |
Subject: |
bug#36568: with-suppress-warnings not working in seq-tests.el |
Date: |
Sat, 22 Aug 2020 16:14:09 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Stefan Kangas <stefan@marxist.se> writes:
> On current master, I'm seeing strange behaviour when trying to
> suppress warnings in the test suite using with-suppressed-warnings.
[...]
> In toplevel form:
> lisp/emacs-lisp/seq-tests.el:183:20:Warning: `seq-contains' is an obsolete
> function (as of 27.1); use `seq-contains-p' instead.
Odd. To reproduce, I tried to just do:
(require 'seq)
(defun foo ()
(with-suppressed-warnings ((obsolete seq-contains))
(seq-contains '(3 4 5 6) 3)))
But the warning is suppressed correctly then. So there's ... something
in the way the test files are compile that breaks
with-suppressed-warnings? Something in the ert macros? Anybody got any
ideas?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#36568: with-suppress-warnings not working in seq-tests.el,
Lars Ingebrigtsen <=