Skip to content

Commit

Permalink
Fix error in test for issue 7023
Browse files Browse the repository at this point in the history
  • Loading branch information
timlinux committed Jan 23, 2013
1 parent 5f70a68 commit 595a45f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/src/python/test_qgsrasterlayer.py
Expand Up @@ -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."""
Expand Down

0 comments on commit 595a45f

Please sign in to comment.