Created unittest for bug #407.
This commit is contained in:
parent
10f88e23f7
commit
df39c3a97d
1 changed files with 7 additions and 0 deletions
|
|
@ -52,5 +52,12 @@ class InheritsCase(unittest.TestCase):
|
||||||
# the exception to "reach the surface".
|
# the exception to "reach the surface".
|
||||||
obj1.objectName()
|
obj1.objectName()
|
||||||
|
|
||||||
|
def testMultipleInheritance(self):
|
||||||
|
def declareClass():
|
||||||
|
class Foo(object, QObject):
|
||||||
|
pass
|
||||||
|
|
||||||
|
self.assertRaises(TypeError, declareClass)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue