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/QtGui/bug_728.py | |
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/QtGui/bug_728.py')
-rw-r--r-- | tests/QtGui/bug_728.py | 8 |
1 files changed, 8 insertions, 0 deletions
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) |