Skip to content

Commit

Permalink
Fix failing test on qt5
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jun 10, 2016
1 parent 7af6d24 commit a592167
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/src/python/test_qgsfeatureiterator.py
Expand Up @@ -196,7 +196,7 @@ def test_JoinUsingExpression(self):
self.assertEqual(attrs[4], 246)
self.assertFalse(fi.nextFeature(f))

QgsMapLayerRegistry.instance().removeMapLayers([layer, joinLayer])
QgsMapLayerRegistry.instance().removeMapLayers([layer.id(), joinLayer.id()])

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

QgsMapLayerRegistry.instance().removeMapLayers([layer, joinLayer])
QgsMapLayerRegistry.instance().removeMapLayers([layer.id(), joinLayer.id()])
# try the other way too


Expand Down

0 comments on commit a592167

Please sign in to comment.