aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside2/tests
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside2/tests')
-rw-r--r--sources/pyside2/tests/pysidetest/property_python_test.py2
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):