diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2011-03-23 19:14:42 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:54:05 -0300 |
commit | 61f479b6826f7d88c02c0ab5986e8e2c08be5518 (patch) | |
tree | 9b0b83f643e49bfb6587e1348477fc6557c4dd49 /tests/QtCore/bug_699.py | |
parent | e360a53087975cac53975f00e747991b7eb818af (diff) |
Fix bug 699 - "PySide.QtCore.Property doesn't throw a TypeError if the first arg isn't a PyType."
Diffstat (limited to 'tests/QtCore/bug_699.py')
-rw-r--r-- | tests/QtCore/bug_699.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/QtCore/bug_699.py b/tests/QtCore/bug_699.py new file mode 100644 index 000000000..e731b5be2 --- /dev/null +++ b/tests/QtCore/bug_699.py @@ -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() |