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 9
9
module_names = [
10
10
m .name
11
11
for m in walk_packages (
12
- path = matplotlib .__path__ , prefix = f" { matplotlib .__name__ } ."
12
+ path = matplotlib .__path__ , prefix = f' { matplotlib .__name__ } .'
13
13
)
14
14
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 ('.' ))
16
16
]
17
17
18
18
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' )
21
21
def test_getattr (module_name ):
22
22
"""
23
23
Test that __getattr__ methods raise AttributeError for unknown keys.
@@ -27,8 +27,8 @@ def test_getattr(module_name):
27
27
module = import_module (module_name )
28
28
except (ImportError , RuntimeError ) as e :
29
29
# 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 } ' )
31
31
32
- key = " THIS_SYMBOL_SHOULD_NOT_EXIST"
32
+ key = ' THIS_SYMBOL_SHOULD_NOT_EXIST'
33
33
if hasattr (module , key ):
34
34
delattr (module , key )
You can’t perform that action at this time.
0 commit comments