Skip to content
Permalink
Browse files

Fix QgsDataItem test

  • Loading branch information
elpaso committed Feb 6, 2021
1 parent 37e5f94 commit 1042136a8999c12c9bca351b11c233f681b9ce1d
Showing with 2 additions and 0 deletions.
  1. +2 −0 tests/src/python/test_qgsdataitem.py
@@ -70,6 +70,8 @@ def testPythonCreateChildrenCalledFromCplusplus(self):
self.assertEqual(children[0].name(), "name")
self.assertEqual(children[1].name(), "name2")

del(children)

# Delete the object and make sure all deferred deletions are processed
item.destroyed.connect(loop.quit)
item.deleteLater()

0 comments on commit 1042136

Please sign in to comment.