From dc661c9e6527d04604d42e234dd6ba46a8f9c879 Mon Sep 17 00:00:00 2001 From: Hugo Parente Lima Date: Tue, 25 Jan 2011 14:24:27 -0200 Subject: Add test for bug#640. Reviewer: Marcelo Lira Luciano Wolf --- tests/QtGui/CMakeLists.txt | 1 + tests/QtGui/bug_640.py | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 tests/QtGui/bug_640.py (limited to 'tests/QtGui') 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() -- cgit v1.2.3