diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2010-12-17 13:55:07 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:47:59 -0300 |
commit | 803a2708402710b92cc5246931803c0c0144f01d (patch) | |
tree | bb0d44b93c2ed25bb88f97cd5209839695d3a2c2 | |
parent | 7f42b68c29bc4e22add7d9bb1f7fbf98c99c88c0 (diff) |
Added a call to QObject.metaObject() to check if a segfault is caused.
This completes the tests for bug #507[1].
Also removed an unnecessary commented line.
[1] http://bugs.openbossa.org/show_bug.cgi?id=507
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
Reviewed by Renato Araújo <renato.filho@openbossa.org>
-rw-r--r-- | tests/pysidetest/modelview_test.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/pysidetest/modelview_test.py b/tests/pysidetest/modelview_test.py index 94cf3f08e..07374562b 100644 --- a/tests/pysidetest/modelview_test.py +++ b/tests/pysidetest/modelview_test.py @@ -39,7 +39,6 @@ class ListModelThatReturnsString(QAbstractListModel): def data(self, index, role): self.obj = 'string' return self.obj - #return 'string' class ModelViewTest(unittest.TestCase): @@ -50,6 +49,7 @@ class ModelViewTest(unittest.TestCase): obj = view.getData() self.assertEqual(type(obj), MyObject) self.assertEqual(obj.objectName(), object_name) + obj.metaObject() def testListModelKeepsReference(self): model = ListModelKeepsReference() |