diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/QtGui/CMakeLists.txt | 1 | ||||
-rw-r--r-- | tests/QtGui/bug_467.py | 19 |
2 files changed, 20 insertions, 0 deletions
diff --git a/tests/QtGui/CMakeLists.txt b/tests/QtGui/CMakeLists.txt index 9086829f8..e071ddfa6 100644 --- a/tests/QtGui/CMakeLists.txt +++ b/tests/QtGui/CMakeLists.txt @@ -16,6 +16,7 @@ PYSIDE_TEST(bug_416.py) PYSIDE_TEST(bug_429.py) PYSIDE_TEST(bug_430.py) PYSIDE_TEST(bug_433.py) +PYSIDE_TEST(bug_467.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_467.py b/tests/QtGui/bug_467.py new file mode 100644 index 000000000..5c5af4b20 --- /dev/null +++ b/tests/QtGui/bug_467.py @@ -0,0 +1,19 @@ +''' Test bug 367: http://bugs.openbossa.org/show_bug.cgi?id=467''' + +import unittest +from helper import UsesQApplication +from PySide.QtGui import QMainWindow, QApplication + +class MyWidget(QMainWindow): + def __init__(self, parent = None): + QMainWindow.__init__(self, parent) + + +class BugTest(UsesQApplication): + def testCase(self): + w = MyWidget() + widgets = QApplication.allWidgets() + self.assert_(w in widgets) + +if __name__ == '__main__': + unittest.main() |