use assertWarns instead of check_warnings - Issue14341
1 file changed