TST: Fix assert_produces_warning to reset warning filter