Thomas Kluyver <tho...@kluyver.me.uk> added the comment:

Yes, this should be easy. I misunderstood how to use the catch_warnings context 
manager. I thought that catch_warnings itself set up the warnings filters you 
need. You actually need to do that with a separate call inside the with block, 
as shown here:

https://docs.python.org/3/library/warnings.html#testing-warnings

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue33912>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to