aboutsummaryrefslogtreecommitdiffstats
path: root/tests/QtUiTools/bug_392.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/QtUiTools/bug_392.py')
-rw-r--r--tests/QtUiTools/bug_392.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/QtUiTools/bug_392.py b/tests/QtUiTools/bug_392.py
new file mode 100644
index 000000000..ebda08cbe
--- /dev/null
+++ b/tests/QtUiTools/bug_392.py
@@ -0,0 +1,19 @@
+import unittest
+import os
+from helper import UsesQApplication
+
+from PySide import QtCore, QtGui
+from PySide.QtUiTools import QUiLoader
+
+class BugTest(UsesQApplication):
+ def testCase(self):
+ w = QtGui.QWidget()
+ loader = QUiLoader()
+
+ filePath = os.path.join(os.path.dirname(__file__), 'action.ui')
+ result = loader.load(filePath, w)
+ self.assertEqual(type(result.statusbar.actionFoo), QtGui.QAction)
+
+if __name__ == '__main__':
+ unittest.main()
+