summaryrefslogtreecommitdiffstats
path: root/tests/QtUiTools/bug_376.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/QtUiTools/bug_376.py')
-rw-r--r--tests/QtUiTools/bug_376.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/QtUiTools/bug_376.py b/tests/QtUiTools/bug_376.py
new file mode 100644
index 0000000..2bd6b5c
--- /dev/null
+++ b/tests/QtUiTools/bug_376.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__), 'test.ui')
+ result = loader.load(filePath, w)
+ self.assertEqual(type(result.child_object), QtGui.QFrame)
+
+if __name__ == '__main__':
+ unittest.main()
+