Skip to content

Commit 518416a

Browse files
committed
Revert to single quotes
1 parent e2131bb commit 518416a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/matplotlib/tests/test_getattr.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99
module_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')
2121
def 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)

0 commit comments

Comments
 (0)