File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 99module_names = [
1010 m .name
1111 for m in walk_packages (
12- path = matplotlib .__path__ , prefix = f" { matplotlib .__name__ } ."
12+ path = matplotlib .__path__ , prefix = f' { matplotlib .__name__ } .'
1313 )
1414 if not m .name .startswith (__package__ )
15- and not any (x .startswith ("_" ) for x in m .name .split ("." ))
15+ and not any (x .startswith ('_' ) for x in m .name .split ('.' ))
1616]
1717
1818
19- @pytest .mark .parametrize (" module_name" , module_names )
20- @pytest .mark .filterwarnings (" ignore::DeprecationWarning" )
19+ @pytest .mark .parametrize (' module_name' , module_names )
20+ @pytest .mark .filterwarnings (' ignore::DeprecationWarning' )
2121def test_getattr (module_name ):
2222 """
2323 Test that __getattr__ methods raise AttributeError for unknown keys.
@@ -27,8 +27,8 @@ def test_getattr(module_name):
2727 module = import_module (module_name )
2828 except (ImportError , RuntimeError ) as e :
2929 # Skip modules that cannot be imported due to missing dependencies
30- pytest .skip (f" Cannot import { module_name } due to { e } " )
30+ pytest .skip (f' Cannot import { module_name } due to { e } ' )
3131
32- key = " THIS_SYMBOL_SHOULD_NOT_EXIST"
32+ key = ' THIS_SYMBOL_SHOULD_NOT_EXIST'
3333 if hasattr (module , key ):
3434 delattr (module , key )
You can’t perform that action at this time.
0 commit comments