diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2011-05-03 16:37:07 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2011-05-04 10:59:42 -0300 |
commit | 4175398b071c05bcc7166533c97972bd94a688ff (patch) | |
tree | 9805fab9c29bdf5f33de9d3b0fc17b5eea4aa325 /tests/QtUiTools | |
parent | 9b793705feae3da73230198d61cb29627b558e6a (diff) | |
download | pyside-4175398b071c05bcc7166533c97972bd94a688ff.tar.gz pyside-4175398b071c05bcc7166533c97972bd94a688ff.tar.xz pyside-4175398b071c05bcc7166533c97972bd94a688ff.zip |
Fix bug 797 - "error on ui file load"
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Renato Araújo <renato.filho@openbossa.org>
Diffstat (limited to 'tests/QtUiTools')
-rw-r--r-- | tests/QtUiTools/CMakeLists.txt | 1 | ||||
-rw-r--r-- | tests/QtUiTools/bug_797.py | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/QtUiTools/CMakeLists.txt b/tests/QtUiTools/CMakeLists.txt index 131adfe..4c055ec 100644 --- a/tests/QtUiTools/CMakeLists.txt +++ b/tests/QtUiTools/CMakeLists.txt @@ -3,5 +3,6 @@ PYSIDE_TEST(bug_376.py) PYSIDE_TEST(bug_392.py) PYSIDE_TEST(bug_426.py) PYSIDE_TEST(bug_552.py) +PYSIDE_TEST(bug_797.py) PYSIDE_TEST(uiloader_test.py) PYSIDE_TEST(ui_test.py) diff --git a/tests/QtUiTools/bug_797.py b/tests/QtUiTools/bug_797.py new file mode 100644 index 0000000..f61a22f --- /dev/null +++ b/tests/QtUiTools/bug_797.py @@ -0,0 +1,11 @@ +from PySide import QtUiTools +from PySide import QtCore +from PySide import QtGui +from helper import adjust_filename + +app = QtGui.QApplication([]) +loader = QtUiTools.QUiLoader() +file = QtCore.QFile(adjust_filename('bug_552.ui', __file__)) +w = QtGui.QWidget() +# An exception can't be thrown +mainWindow = loader.load(file, w) |