This is unnecessary with `assert_warns`