aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside2/tests/registry/util.py
diff options
context:
space:
mode:
authorChristian Tismer <tismer@stackless.com>2019-09-21 18:34:13 +0200
committerChristian Tismer <tismer@stackless.com>2019-09-28 00:15:57 +0200
commitb4989b9c2b33772f23dd5f9763622e6fd3cf41a8 (patch)
treefee1717e5d8bdb1267ed7f7432fc09be67c6b024 /sources/pyside2/tests/registry/util.py
parent94023741a3d0377b5a39914646bc06b06f6fa548 (diff)
Enable the Function Registry for 5.14
The function registry was not enabled for versions greater than 5.12 . This is now needed, since the function registry will be used in the tests for the improved NumPy support. There were new cases of Python keywords touched by enums which had to be renamed. This was moved into the code generator instead of the runtime overhead. The formatting of the enums was rewritten and reports all enums now that can be found (also those which are copied into the parent class). The formatting of the function registry had not been used for a long time and had entries that showed the wrong number of subclasses. The usage of the registry was also simplified by using the full names of functions. They can now directly be accessed. Task-number: PYSIDE-795 Change-Id: I734f6811205f3c3528a911975677eb677fedd2dd Reviewed-by: Friedemann Kleint <Friedemann.Kleint@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 415b8aa45..3033608e6 100644
--- a/sources/pyside2/tests/registry/util.py
+++ b/sources/pyside2/tests/registry/util.py
@@ -91,7 +91,7 @@ def check_warnings():
return True
return False
-def warn(message, category=None, stacklevel=1):
+def warn(message, category=None, stacklevel=2):
"""Issue a warning with the default 'RuntimeWarning'"""
if category is None:
category = UserWarning