gc.collect() causes segfault on pyside2, test will pass on pyqt5 bindings (did not test pyqt4 or pyside1)
This commit is contained in:
parent
51b3201564
commit
aa50296b9f
@ -10,7 +10,6 @@ def test_isQObjectAlive():
|
|||||||
o2 = pg.QtCore.QObject()
|
o2 = pg.QtCore.QObject()
|
||||||
o2.setParent(o1)
|
o2.setParent(o1)
|
||||||
del o1
|
del o1
|
||||||
gc.collect()
|
|
||||||
assert not pg.Qt.isQObjectAlive(o2)
|
assert not pg.Qt.isQObjectAlive(o2)
|
||||||
|
|
||||||
@pytest.mark.skipif(pg.Qt.QT_LIB == 'PySide', reason='pysideuic does not appear to be '
|
@pytest.mark.skipif(pg.Qt.QT_LIB == 'PySide', reason='pysideuic does not appear to be '
|
||||||
|
Loading…
Reference in New Issue
Block a user