[tests] ui_graph: delete graph object

unparented QObject with no QApplication causes crash after test execution if not explicitly deleted
This commit is contained in:
Yann Lanthony 2018-07-03 18:35:40 +02:00
parent f87907ded2
commit c23ec5376b

View file

@ -32,3 +32,6 @@ def test_duplicate_nodes():
assert nMap[n2].input.getLinkParam() == nMap[n1].output
assert nMap[n3].input.getLinkParam() == nMap[n1].output
assert nMap[n3].input2.getLinkParam() == nMap[n2].output
# ensure de-allocation order for un-parented UIGraph (QObject) with no QApplication instance
g.deleteLater()