From 595a45f4a97b7df2454f676f8605d0dbc6ee3073 Mon Sep 17 00:00:00 2001 From: Tim Sutton Date: Thu, 24 Jan 2013 00:11:59 +0200 Subject: [PATCH] Fix error in test for issue 7023 --- tests/src/python/test_qgsrasterlayer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/src/python/test_qgsrasterlayer.py b/tests/src/python/test_qgsrasterlayer.py index 3f02e5df9a26..f3f538054f5b 100644 --- a/tests/src/python/test_qgsrasterlayer.py +++ b/tests/src/python/test_qgsrasterlayer.py @@ -161,7 +161,7 @@ def testIssue7023(self): myMessage = 'Raster not loaded: %s' % myPath assert myRasterLayer.isValid(), myMessage # crash on next line - QgsMapLayerRegistry.addMapLayers([myRasterLayer]) + QgsMapLayerRegistry.instance().addMapLayers([myRasterLayer]) def testShaderCrash(self): """Check if we assign a shader and then reassign it no crash occurs."""