diff options
Diffstat (limited to 'sources/pyside2/tests')
-rw-r--r-- | sources/pyside2/tests/registry/init_platform.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sources/pyside2/tests/registry/init_platform.py b/sources/pyside2/tests/registry/init_platform.py index a324c36a2..6031dd2ad 100644 --- a/sources/pyside2/tests/registry/init_platform.py +++ b/sources/pyside2/tests/registry/init_platform.py @@ -55,7 +55,8 @@ shiboken and pysidetest projects. import sys import os import re -from contextlib import contextmanager +# PYSIDE-953: Use a newer contextlib for Python 3.5 +# from contextlib import contextmanager from textwrap import dedent script_dir = os.path.normpath(os.path.join(__file__, *".. .. .. .. ..".split())) @@ -117,6 +118,9 @@ sys.path[:0] = [os.path.join(shiboken_build_dir, "shibokenmodule"), pyside_build_dir] import PySide2 +# PYSIDE-953: Use a newer contextlib for Python 3.5 +import PySide2.support.signature # new contextlib +from contextlib import contextmanager all_modules = list("PySide2." + x for x in PySide2.__all__) |