Fix test_warnings: don't modify warnings.filters
BaseTest now ensures that unittest.TestCase.assertWarns() uses the same warnings module than warnings.catch_warnings(). Otherwise, warnings.catch_warnings() will be unable to remove the added filter.
V
Victor Stinner committed
1c4055208758c6e85f00674eae24e0351b659c5a
Parent: 5b6b4a8