summaryrefslogtreecommitdiffstats
path: root/tests/QtUiTools/bug_965.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/QtUiTools/bug_965.py')
-rw-r--r--tests/QtUiTools/bug_965.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/QtUiTools/bug_965.py b/tests/QtUiTools/bug_965.py
new file mode 100644
index 0000000..4dbd281
--- /dev/null
+++ b/tests/QtUiTools/bug_965.py
@@ -0,0 +1,20 @@
+from PySide.QtUiTools import QUiLoader
+import unittest
+
+from helper import UsesQApplication
+from helper import adjust_filename
+
+class MyQUiLoader(QUiLoader):
+ def __init__(self):
+ super(MyQUiLoader, self).__init__()
+
+ def createWidget(self, className, parent=None, name=""):
+ return None
+
+class BugTest(UsesQApplication):
+ def testCase(self):
+ loader = MyQUiLoader()
+ self.assertRaises(RuntimeError, loader.load, adjust_filename('bug_965.ui', __file__))
+
+if __name__ == '__main__':
+ unittest.main()