diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-10-13 07:41:23 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-10-13 10:24:39 +0200 |
commit | 12f6e7b6e57013aee920767fde6548e734bdfb58 (patch) | |
tree | c9d2efdd53c26656036b00d62648842e75b2067d | |
parent | d3883e9186892e673e8a66ad6651409d5eaf7cf3 (diff) |
property_python_test.py: Restrict except
Catch ImportError when trying to import support from test.
Amends d3883e9186892e673e8a66ad6651409d5eaf7cf3.
Task-number: PYSIDE-1402
Change-Id: I9fc77f6311596f1e52872d5ffbb491e01c207b73
Reviewed-by: Christian Tismer <tismer@stackless.com>
-rw-r--r-- | sources/pyside2/tests/pysidetest/property_python_test.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/pyside2/tests/pysidetest/property_python_test.py b/sources/pyside2/tests/pysidetest/property_python_test.py index ec2940b14..7df104525 100644 --- a/sources/pyside2/tests/pysidetest/property_python_test.py +++ b/sources/pyside2/tests/pysidetest/property_python_test.py @@ -58,7 +58,7 @@ try: if sys.version_info[0] >= 3: # This test has no support in Python 2 from test import support has_test = True -except: +except ImportError: pass class PropertyBase(Exception): |