Skip to content
Permalink
Browse files

Fix failing test on qt5

  • Loading branch information
nyalldawson committed Jun 10, 2016
1 parent 7af6d24 commit a592167d290baf268e9c0df8e0f8a352236e400f
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/src/python/test_qgsfeatureiterator.py
@@ -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!) """
@@ -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


0 comments on commit a592167

Please sign in to comment.
You can’t perform that action at this time.