use tm.assert_produces_warning here (same thing just more consistent)