aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests/pysidetest/new_inherited_functions_test.py
diff options
context:
space:
mode:
authorCristian Maureira-Fredes <Cristian.Maureira-Fredes@qt.io>2021-01-04 21:03:22 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-01-06 15:34:36 +0000
commit5ea0fde59719866f6eb86a4fe4e33d7f389802c5 (patch)
treedb7305af8d7642b4fddf032ece79dc65d2c95ad4 /sources/pyside6/tests/pysidetest/new_inherited_functions_test.py
parentb9a89e1f3c8d0b80cc91bf1d277ead3b7857dabd (diff)
sources: migration from format() to f-strings
This should be the last patch related the usage of f-strings from the 'sources' directory. Change-Id: I0288d720dc4930dee088ca3396a66d1b3ba18f76 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit d9f344fcef6bec04a787f9ea9f4ea94f15eaa26c) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'sources/pyside6/tests/pysidetest/new_inherited_functions_test.py')
-rw-r--r--sources/pyside6/tests/pysidetest/new_inherited_functions_test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/pyside6/tests/pysidetest/new_inherited_functions_test.py b/sources/pyside6/tests/pysidetest/new_inherited_functions_test.py
index 5e342182a..7a8e03fe8 100644
--- a/sources/pyside6/tests/pysidetest/new_inherited_functions_test.py
+++ b/sources/pyside6/tests/pysidetest/new_inherited_functions_test.py
@@ -122,7 +122,7 @@ class MainTest(unittest.TestCase):
"""
for app in "QtWidgets.QApplication", "QtGui.QGuiApplication", "QtCore.QCoreApplication":
try:
- exec("qApp = PySide6.{0}([]) or PySide6.{0}.instance()".format(app))
+ exec(f"qApp = PySide6.{app}([]) or PySide6.{app}.instance()")
break
except AttributeError:
continue