Removed redundand assert_warns