summaryrefslogtreecommitdiff
path: root/tests/system/suite_general/tst_create_proj_wizard/test.py
diff options
context:
space:
mode:
authorAlessandro Portale <alessandro.portale@qt.io>2019-05-02 18:16:47 +0200
committerhjk <hjk@qt.io>2019-05-10 05:53:39 +0000
commit53117088451d486f6ec57cb4339dbe9253bfbc28 (patch)
tree7f04795dccdf84a241468982853eadcd6b4fd824 /tests/system/suite_general/tst_create_proj_wizard/test.py
parent4f989d6543de221fc4857a8c11750b5645bac7cc (diff)
downloadqt-creator-53117088451d486f6ec57cb4339dbe9253bfbc28.tar.gz
python scripts: Use "not in" operator to test membership
As per suggestion from Pyls, this changes if not needle in haystack: to if needle not in haystack: Change-Id: I4a482604e13e61ecee9e02935479632419710ff7 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Robert Loehning <robert.loehning@qt.io> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Diffstat (limited to 'tests/system/suite_general/tst_create_proj_wizard/test.py')
-rw-r--r--tests/system/suite_general/tst_create_proj_wizard/test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/system/suite_general/tst_create_proj_wizard/test.py b/tests/system/suite_general/tst_create_proj_wizard/test.py
index 194d90aa9c..e3bee3b2a4 100644
--- a/tests/system/suite_general/tst_create_proj_wizard/test.py
+++ b/tests/system/suite_general/tst_create_proj_wizard/test.py
@@ -61,7 +61,7 @@ def main():
for template in dumpItems(templatesView.model(), templatesView.rootIndex()):
template = template.replace(".", "\\.")
# skip non-configurable
- if not template in ["Qt Quick UI Prototype", "Auto Test Project", # FIXME
+ if template not in ["Qt Quick UI Prototype", "Auto Test Project", # FIXME
"Qt for Python - Empty", "Qt for Python - Window"]:
availableProjectTypes.append({category:template})
safeClickButton("Cancel")