Fix bug 699 - "PySide.QtCore.Property doesn't throw a TypeError if the first arg isn't a PyType."
This commit is contained in:
parent
6f8f728241
commit
3cd2cad128
3 changed files with 25 additions and 7 deletions
17
tests/QtCore/bug_699.py
Normal file
17
tests/QtCore/bug_699.py
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import unittest
|
||||
from PySide.QtCore import *
|
||||
|
||||
class TestBug699 (unittest.TestCase):
|
||||
|
||||
def defClass(self):
|
||||
class Foo (QObject):
|
||||
def foo(self):
|
||||
pass
|
||||
|
||||
prop = Property(foo, foo)
|
||||
|
||||
def testIt(self):
|
||||
self.assertRaises(TypeError, self.defClass)
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
Loading…
Add table
Add a link
Reference in a new issue