aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside2/tests/QtWidgets
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/QtWidgets
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/QtWidgets')
-rw-r--r--sources/pyside2/tests/QtWidgets/qwidget_test.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/sources/pyside2/tests/QtWidgets/qwidget_test.py b/sources/pyside2/tests/QtWidgets/qwidget_test.py
index 5e94a8248..e2f7e5ed1 100644
--- a/sources/pyside2/tests/QtWidgets/qwidget_test.py
+++ b/sources/pyside2/tests/QtWidgets/qwidget_test.py
@@ -58,13 +58,6 @@ class QWidgetTest(UsesQApplication):
def testInheritance(self):
self.assertRaises(TypeError, QWidgetInherit)
- if sys.version_info[0] < 3:
- def testCallType_Issue_816(self):
- thing = type(QWidget).__new__(type(QWidget), "", (), {})
- # PYSIDE-1286: This works now like in Python 3
- #self.assertEqual(repr(thing), "<class '__main__.'>")
- self.assertEqual(repr(thing), "<class '__main__.ObjectType'>")
-
class QWidgetVisible(UsesQApplication):
def testBasic(self):