diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2011-01-25 14:24:27 -0200 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:51:49 -0300 |
commit | dc661c9e6527d04604d42e234dd6ba46a8f9c879 (patch) | |
tree | a00803d7e76bd1b49be9e876ba2d938e9a9b9594 | |
parent | 9c7755b08018b1e71d7895e20f91f848152ffe9d (diff) |
Add test for bug#640.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Luciano Wolf <luciano.wolf@openbossa.org>
-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() |