diff options
author | Renato Filho <renato.filho@openbossa.org> | 2011-06-28 19:28:09 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:54:31 -0300 |
commit | b6f38556bd8cfcc61c537701a61cde56b4f704cf (patch) | |
tree | f1929cc56ef5bab586e10aed8cfbfdeaa072f327 /tests | |
parent | 7eb5694e17cbbf8c167ad3b483b4c7d6c89a5650 (diff) |
Created unittest for bug #407.
Diffstat (limited to 'tests')
-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() |