aboutsummaryrefslogtreecommitdiffstats
path: root/tests/QtGui/bug_640.py
diff options
context:
space:
mode:
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()