Skip to content

Commit a592167

Browse files
committed
Fix failing test on qt5
1 parent 7af6d24 commit a592167

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/src/python/test_qgsfeatureiterator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def test_JoinUsingExpression(self):
196196
self.assertEqual(attrs[4], 246)
197197
self.assertFalse(fi.nextFeature(f))
198198

199-
QgsMapLayerRegistry.instance().removeMapLayers([layer, joinLayer])
199+
QgsMapLayerRegistry.instance().removeMapLayers([layer.id(), joinLayer.id()])
200200

201201
def test_JoinUsingExpression2(self):
202202
""" test joining a layer using a virtual field (the other way!) """
@@ -238,7 +238,7 @@ def test_JoinUsingExpression2(self):
238238
self.assertEqual(attrs[4], 321)
239239
self.assertFalse(fi.nextFeature(f))
240240

241-
QgsMapLayerRegistry.instance().removeMapLayers([layer, joinLayer])
241+
QgsMapLayerRegistry.instance().removeMapLayers([layer.id(), joinLayer.id()])
242242
# try the other way too
243243

244244

0 commit comments

Comments
 (0)