summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2011-06-28 19:28:09 -0300
committerRenato Filho <renato.filho@openbossa.org>2011-06-28 19:28:09 -0300
commitdf39c3a97d5ea1c7ecad2a7faff30c86e420251e (patch)
treefe54a7ae6f21a038b8f2eadfc5e2d873d9c85c6c
parent10f88e23f70f3fce4f90e143cf3151f7a5d84020 (diff)
downloadpyside-df39c3a97d5ea1c7ecad2a7faff30c86e420251e.tar.gz
pyside-df39c3a97d5ea1c7ecad2a7faff30c86e420251e.tar.xz
pyside-df39c3a97d5ea1c7ecad2a7faff30c86e420251e.zip
Created unittest for bug #407.
-rw-r--r--tests/QtCore/qobject_inherits_test.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/QtCore/qobject_inherits_test.py b/tests/QtCore/qobject_inherits_test.py
index fce383a..a3db11a 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()