aboutsummaryrefslogtreecommitdiffstats
path: root/tools/snippets_translate/tests
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2022-08-15 13:16:27 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2022-08-16 11:35:48 +0200
commitbeaf2513cbe23f0a40162df1cd454c278fc7a1d1 (patch)
tree2fb194434d6757e22f565fcecca072663064ce3b /tools/snippets_translate/tests
parent6cad6d81a97900bd98234bc6434d68f65578a539 (diff)
snippets_translate: Do convert return statements to functions
Pick-to: 6.3 6.2 Task-number: PYSIDE-2030 Change-Id: Icd6f3a639449d737933d4420fbeb891224999b59 Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io> Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'tools/snippets_translate/tests')
-rw-r--r--tools/snippets_translate/tests/test_converter.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/snippets_translate/tests/test_converter.py b/tools/snippets_translate/tests/test_converter.py
index ced52d26a..073dde6d9 100644
--- a/tools/snippets_translate/tests/test_converter.py
+++ b/tools/snippets_translate/tests/test_converter.py
@@ -331,6 +331,7 @@ def test_functions():
st("QString myDecoderFunc(const QByteArray &localFileName);")
== "def myDecoderFunc(localFileName):"
)
+ assert st("return QModelIndex();") == "return QModelIndex()"
def test_foreach():