diff options
-rw-r--r-- | tests/QtGui/CMakeLists.txt | 1 | ||||
-rw-r--r-- | tests/QtGui/bug_640.py | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/QtGui/CMakeLists.txt b/tests/QtGui/CMakeLists.txt index 3d6c11e2b..7ba6f4e56 100644 --- a/tests/QtGui/CMakeLists.txt +++ b/tests/QtGui/CMakeLists.txt @@ -30,6 +30,7 @@ PYSIDE_TEST(bug_575.py) PYSIDE_TEST(bug_576.py) PYSIDE_TEST(bug_585.py) PYSIDE_TEST(bug_589.py) +PYSIDE_TEST(bug_640.py) PYSIDE_TEST(customproxywidget_test.py) PYSIDE_TEST(deepcopy_test.py) PYSIDE_TEST(float_to_int_implicit_conversion_test.py) 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() |