File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -196,7 +196,7 @@ def test_JoinUsingExpression(self):
196
196
self .assertEqual (attrs [4 ], 246 )
197
197
self .assertFalse (fi .nextFeature (f ))
198
198
199
- QgsMapLayerRegistry .instance ().removeMapLayers ([layer , joinLayer ])
199
+ QgsMapLayerRegistry .instance ().removeMapLayers ([layer . id () , joinLayer . id () ])
200
200
201
201
def test_JoinUsingExpression2 (self ):
202
202
""" test joining a layer using a virtual field (the other way!) """
@@ -238,7 +238,7 @@ def test_JoinUsingExpression2(self):
238
238
self .assertEqual (attrs [4 ], 321 )
239
239
self .assertFalse (fi .nextFeature (f ))
240
240
241
- QgsMapLayerRegistry .instance ().removeMapLayers ([layer , joinLayer ])
241
+ QgsMapLayerRegistry .instance ().removeMapLayers ([layer . id () , joinLayer . id () ])
242
242
# try the other way too
243
243
244
244
You can’t perform that action at this time.
0 commit comments