On Monday 04 April 2016 18:37:39 Tim Graham wrote: > I think django.test.ignore_warnings may meet your needs. >
Yes, probably. I had misunderstood the warnings.catch_warnings() documentation (and might have misunderstood the django.test.ignore_warnings documentation as well, if there was such doumentation). > As for the latter idea, unless something is really eager to add a Python 2 > compatible version (if possible) to Django's SimpleTestCase, we can wait > until dropping Python 2 support and then use the TestCase.assertWarns() in > Python 3.2+. > Agreed. Thanks, Shai.