summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2010-11-09 09:58:00 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2010-11-09 10:47:47 -0300
commit729d68b703a4b8998f5b796e2da1a4e9b113468e (patch)
treef3c83589319fc7de6a8c7b749dba5531077b4ce5
parent257e0cdf188172a9548e652ca5763bb124bb58ea (diff)
downloadpyside-729d68b703a4b8998f5b796e2da1a4e9b113468e.tar.gz
pyside-729d68b703a4b8998f5b796e2da1a4e9b113468e.tar.xz
pyside-729d68b703a4b8998f5b796e2da1a4e9b113468e.zip
Added test for Bug 452.
Bug 452 - QListWidgetItem() not casting NoneType to null correctly. Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Ara├║jo <renato.filho@openbossa.org>
-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()