summaryrefslogtreecommitdiffstats
path: root/tests/QtGui/qlistwidgetitem_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/QtGui/qlistwidgetitem_test.py')
-rw-r--r--tests/QtGui/qlistwidgetitem_test.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/QtGui/qlistwidgetitem_test.py b/tests/QtGui/qlistwidgetitem_test.py
index 159f38c..e41dfc4 100644
--- a/tests/QtGui/qlistwidgetitem_test.py
+++ b/tests/QtGui/qlistwidgetitem_test.py
@@ -21,6 +21,9 @@ class QListWidgetItemConstructor(UsesQApplication):
item = self.widgetList.item(0)
self.assertEqual(item.listWidget(), self.widgetList)
+ def testConstructorWithNone(self):
+ # Bug 452 - QListWidgetItem() not casting NoneType to null correctly.
+ item = QtGui.QListWidgetItem(None, 123)
if __name__ == '__main__':
unittest.main()