aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside2/tests/pysidetest/property_python_test.py
diff options
context:
space:
mode:
authorChristian Tismer <tismer@stackless.com>2020-10-27 11:34:32 +0100
committerChristian Tismer <tismer@stackless.com>2020-10-27 21:13:20 +0000
commitdcced0742f383b1932d0e56323387fbd8aeb4513 (patch)
treeccafffb6ffb68c9b8ddbeb1ade1ac5c8a1efa59b /sources/pyside2/tests/pysidetest/property_python_test.py
parent844f1cc2541fe7213ebf2d72039ef28a04e200b4 (diff)
remove traces of Python2 from Python code
It will be assumed that Python is always Python 3. All checks for Python 2 are removed. This is the first part of cleaning up the Python code. We will then also clean the C code. Task-number: PYSIDE-904 Change-Id: I06050a8c1a18a19583f551b61775833a91673f4e Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/pyside2/tests/pysidetest/property_python_test.py')
-rw-r--r--sources/pyside2/tests/pysidetest/property_python_test.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/sources/pyside2/tests/pysidetest/property_python_test.py b/sources/pyside2/tests/pysidetest/property_python_test.py
index 7df104525..443977c90 100644
--- a/sources/pyside2/tests/pysidetest/property_python_test.py
+++ b/sources/pyside2/tests/pysidetest/property_python_test.py
@@ -55,9 +55,8 @@ import sys
import unittest
has_test = False
try:
- if sys.version_info[0] >= 3: # This test has no support in Python 2
- from test import support
- has_test = True
+ from test import support
+ has_test = True
except ImportError:
pass