Skip to content
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
Loading