aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests/pysidetest/all_modules_load_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside6/tests/pysidetest/all_modules_load_test.py')
-rw-r--r--sources/pyside6/tests/pysidetest/all_modules_load_test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/pyside6/tests/pysidetest/all_modules_load_test.py b/sources/pyside6/tests/pysidetest/all_modules_load_test.py
index 85807b825..08a78aa40 100644
--- a/sources/pyside6/tests/pysidetest/all_modules_load_test.py
+++ b/sources/pyside6/tests/pysidetest/all_modules_load_test.py
@@ -45,7 +45,7 @@ class AllModulesImportTest(unittest.TestCase):
def testAllModulesCanImport(self):
# would also work: exec("from PySide6 import *")
for name in PySide6.__all__:
- exec("import PySide6.{}".format(name))
+ exec(f"import PySide6.{name}")
if __name__ == '__main__':
unittest.main()