diff options
author | Cristian Maureira-Fredes <Cristian.Maureira-Fredes@qt.io> | 2021-01-04 21:03:22 +0100 |
---|---|---|
committer | Cristian Maureira-Fredes <Cristian.Maureira-Fredes@qt.io> | 2021-01-06 14:51:48 +0100 |
commit | d9f344fcef6bec04a787f9ea9f4ea94f15eaa26c (patch) | |
tree | 212261cffc6086e77a9731f3e23e8d12e6715b5e /sources/pyside6/tests/pysidetest/all_modules_load_test.py | |
parent | b6d1b76b46d7b756f7cb01361037e1cb5efc990a (diff) |
sources: migration from format() to f-strings
This should be the last patch related the usage of f-strings
from the 'sources' directory.
Pick-to: 6.0
Change-Id: I0288d720dc4930dee088ca3396a66d1b3ba18f76
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources/pyside6/tests/pysidetest/all_modules_load_test.py')
-rw-r--r-- | sources/pyside6/tests/pysidetest/all_modules_load_test.py | 2 |
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() |