aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside2/tests/registry/util.py
diff options
context:
space:
mode:
authorChristian Tismer <tismer@stackless.com>2019-03-20 17:15:47 +0100
committerChristian Tismer <tismer@stackless.com>2019-03-25 16:03:49 +0000
commitbad1d6d1fb7e109d04d22e28b552e1e1535d2469 (patch)
treedb6d190d962ec53e03b5b7eab903a9a1c9bb3494 /sources/pyside2/tests/registry/util.py
parent9432862e90bc39c1478a9dd6320201a05a5790cc (diff)
Improve the Selftest in the Registry
The registry had a duplication of code in the self-test that led to an oversight. To prevent that in the future, the error handling has been rewritten, and an extended self-test was written that checks the correctness of every case. A truth table has beed added as a reference for questions. Change-Id: I4570b2388c9b179b33c9520a484e09b9ccb68918 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/pyside2/tests/registry/util.py')
-rw-r--r--sources/pyside2/tests/registry/util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/pyside2/tests/registry/util.py b/sources/pyside2/tests/registry/util.py
index b2a246473..415b8aa45 100644
--- a/sources/pyside2/tests/registry/util.py
+++ b/sources/pyside2/tests/registry/util.py
@@ -86,7 +86,7 @@ def check_warnings():
# XXX We need to filter warnings for Python 2.
# This should be avoided by renaming the duplicate folders.
for k in reg:
- if type(k) == tuple and re.match(ignore_re, k[0]):
+ if type(k) is tuple and re.match(ignore_re, k[0]):
continue
return True
return False