aboutsummaryrefslogtreecommitdiffstats
path: root/tests/QtGui/bug_640.py
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2011-01-25 14:24:27 -0200
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:51:49 -0300
commitdc661c9e6527d04604d42e234dd6ba46a8f9c879 (patch)
treea00803d7e76bd1b49be9e876ba2d938e9a9b9594 /tests/QtGui/bug_640.py
parent9c7755b08018b1e71d7895e20f91f848152ffe9d (diff)
Add test for bug#640.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'tests/QtGui/bug_640.py')
-rw-r--r--tests/QtGui/bug_640.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/QtGui/bug_640.py b/tests/QtGui/bug_640.py
new file mode 100644
index 000000000..4b19bb458
--- /dev/null
+++ b/tests/QtGui/bug_640.py
@@ -0,0 +1,11 @@
+import sys
+from PySide.QtGui import *
+import unittest
+
+class Bug640(unittest.TestCase):
+ def testIt(self):
+ option = QStyleOptionGraphicsItem()
+ a = option.state # crash!?
+
+if __name__ == "__main__":
+ unittest.main()