aboutsummaryrefslogtreecommitdiffstats
path: root/tests/QtCore/bug_699.py
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2011-03-23 19:14:42 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:54:05 -0300
commit61f479b6826f7d88c02c0ab5986e8e2c08be5518 (patch)
tree9b0b83f643e49bfb6587e1348477fc6557c4dd49 /tests/QtCore/bug_699.py
parente360a53087975cac53975f00e747991b7eb818af (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.py17
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()