On Tue, Jan 18, 2022 at 10:58 PM Christopher Barker <pythonchb@gmail.com> wrote:
On Tue, Jan 18, 2022 at 10:30 AM Brett Cannon <brett@python.org> wrote:
 I remember that "noisy by default" deprecation warnings were widely despised.
One thought, what if they were off by default UNLESS you were doing unit tests?

I believe pytest already does this.

Indeed it does, at least in recent versions (1-2 yrs ago?)

And even that is pretty darn annoying. It's really helpful for my code, but they often get lost in the noise of all the ones I get from upstream packages.

I suppose I need to take the time to figure out how to silence the ones I don't want.

And it does prompt me to make sure that the upstream packages are working on it.

Now we just need to get more people to use pytest :-)

Our stdlib unittest already enables warnings by default per https://bugs.python.org/issue10535.

Getting the right people to pay attention to them is always the hard part.


Christopher Barker, PhD (Chris)

Python Language Consulting
  - Teaching
  - Scientific Software Development
  - Desktop GUI and Web Development
  - wxPython, numpy, scipy, Cython
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-leave@python.org
Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/LZAF3TOOIAAFXXK2KPAXA5V5SRBOSIIP/
Code of Conduct: http://python.org/psf/codeofconduct/