Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions doc/changes/dev/13551.other.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Refactor f-strings in ``mne/tests/test_import_nesting.py`` (:gh:`13551` by :newcontrib:`shruti423`).
4 changes: 2 additions & 2 deletions mne/tests/test_import_nesting.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def generic_visit(self, node):
and sys.modules[x] is not None)
bad = scipy_submodules - ok_scipy_submodules
if len(bad) > 0:
out |= {'scipy submodules: %s' % list(bad)}
out |= {f'scipy submodules: {list(bad)}'}

# check sklearn and others
for x in sys.modules.keys():
Expand All @@ -253,7 +253,7 @@ def generic_visit(self, node):
x = '.'.join(x.split('.')[:2])
out |= {x}
if len(out) > 0:
print('\\nFound un-nested import(s) for %s' % (sorted(out),), end='')
print(f'\\nFound un-nested import(s) for {sorted(out)}', end='')
exit(len(out))

# but this should still work
Expand Down