assert_warning(warn_class=None) to assert no warnings
Assert warnings with spaces and none with underscores (for #1044)