summaryrefslogtreecommitdiff
path: root/uitest/test_main.py
diff options
context:
space:
mode:
authorJens Carl <j.carl43@gmx.de>2019-11-17 10:55:29 -0800
committerMuhammet Kara <muhammet.kara@collabora.com>2019-11-18 13:35:44 +0100
commitc0e720bfd209b50ca7dc2082e340f9b6288a6216 (patch)
tree6632f0e8fa956e4f2a8dcf95421b0fdd16ae9278 /uitest/test_main.py
parentf23b9ae6bbc4a82e4e9258a6a1d8ca84d6b5d8ec (diff)
Fix 'is' operator for comparison
The 'is' operator should not be used for comparison on some types of literals. In CPython this works by accident and CPython 3.8 introduced a SyntaxWarning (see https://bugs.python.org/issue34850). Change-Id: Ic4ba481579d13fd1496431ded59dd626a05fc0c6 Reviewed-on: https://gerrit.libreoffice.org/83033 Tested-by: Jenkins Reviewed-by: Muhammet Kara <muhammet.kara@collabora.com>
Diffstat (limited to 'uitest/test_main.py')
-rw-r--r--uitest/test_main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/uitest/test_main.py b/uitest/test_main.py
index 851a44f8e929..ab173c32476c 100644
--- a/uitest/test_main.py
+++ b/uitest/test_main.py
@@ -54,7 +54,7 @@ def find_test_files(dir_path):
# ignore the __init__.py file
# it is obviously not a test file
- if f is "__init__.py":
+ if f == "__init__.py":
continue
valid_files.append(file_path)