TST: Test that assert_warns is reset internally