Message 320050 - Python tracker

Message320050

Author takluyver
Recipients takluyver, vstinner
Date 2018-06-20.10:12:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1529489547.83.0.56676864532.issue33912@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2018-06-20 10:12:27takluyversetrecipients: + takluyver, vstinner
2018-06-20 10:12:27takluyversetmessageid: <1529489547.83.0.56676864532.issue33912@psf.upfronthosting.co.za>
2018-06-20 10:12:27takluyverlinkissue33912 messages
2018-06-20 10:12:27takluyvercreate