diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2011-03-21 15:11:03 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:54:04 -0300 |
commit | 44f5f6261876d508d52826534f7f77270c2b31ce (patch) | |
tree | 8fce06b80b59b5714cc56ef8e102ce94933c5c4e /tests | |
parent | 69abc806ec895239154287779dca9c4cac8adcea (diff) |
Fix bug 728 - "QFileDialog.getOpenFileNames never returns (hangs)"
Reviewer: Lauro Moura <lauro.neto@openbossa.org>
Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/QtGui/CMakeLists.txt | 1 | ||||
-rw-r--r-- | tests/QtGui/bug_728.py | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/tests/QtGui/CMakeLists.txt b/tests/QtGui/CMakeLists.txt index 615e13143..76f3e06f6 100644 --- a/tests/QtGui/CMakeLists.txt +++ b/tests/QtGui/CMakeLists.txt @@ -44,6 +44,7 @@ PYSIDE_TEST(bug_675.py) PYSIDE_TEST(bug_696.py) PYSIDE_TEST(bug_693.py) PYSIDE_TEST(bug_714.py) +PYSIDE_TEST(bug_728.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_728.py b/tests/QtGui/bug_728.py new file mode 100644 index 000000000..f9a5c8b1e --- /dev/null +++ b/tests/QtGui/bug_728.py @@ -0,0 +1,8 @@ +from PySide.QtGui import * +from PySide.QtCore import * + +app = QApplication([]) +QTimer.singleShot(200, app.quit) + +# This test for a dead lock in QFileDialog.getOpenFileNames, the test fail with a timeout if the dead lock exists. +QFileDialog.getOpenFileNames(None, "caption", QDir.homePath(), None, QFileDialog.DontUseNativeDialog) |