aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside2/tests/QtWidgets/qwidget_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside2/tests/QtWidgets/qwidget_test.py')
-rw-r--r--sources/pyside2/tests/QtWidgets/qwidget_test.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/sources/pyside2/tests/QtWidgets/qwidget_test.py b/sources/pyside2/tests/QtWidgets/qwidget_test.py
index 028751ba7..d0a4a8dfa 100644
--- a/sources/pyside2/tests/QtWidgets/qwidget_test.py
+++ b/sources/pyside2/tests/QtWidgets/qwidget_test.py
@@ -1,6 +1,6 @@
#############################################################################
##
-## Copyright (C) 2016 The Qt Company Ltd.
+## Copyright (C) 2019 The Qt Company Ltd.
## Contact: https://www.qt.io/licensing/
##
## This file is part of the test suite of Qt for Python.
@@ -52,6 +52,11 @@ 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), "", (), {})
+ self.assertEqual(repr(thing), "<class '__main__.'>")
+
class QWidgetVisible(UsesQApplication):
def testBasic(self):