diff options
-rw-r--r-- | tests/QtCore/qobject_inherits_test.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/QtCore/qobject_inherits_test.py b/tests/QtCore/qobject_inherits_test.py index fce383aae..a3db11afb 100644 --- a/tests/QtCore/qobject_inherits_test.py +++ b/tests/QtCore/qobject_inherits_test.py @@ -52,5 +52,12 @@ class InheritsCase(unittest.TestCase): # the exception to "reach the surface". obj1.objectName() + def testMultipleInheritance(self): + def declareClass(): + class Foo(object, QObject): + pass + + self.assertRaises(TypeError, declareClass) + if __name__ == '__main__': unittest.main() |