Skip to content

Commit

Permalink
[processing tests] Cleanup layer registry before every new test
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed May 22, 2016
1 parent 2aa002d commit 7f3526b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/plugins/processing/tests/AlgorithmsTestBase.py
Expand Up @@ -68,6 +68,8 @@ def check_algorithm(self, name, defs):
:param name: The identifier name used in the test output heading
:param defs: A python dict containing a test algorithm definition
"""
QgsMapLayerRegistry.instance().removeAllMapLayers()

params = self.load_params(defs['params'])

alg = processing.Processing.getAlgorithm(defs['algorithm']).getCopy()
Expand Down

0 comments on commit 7f3526b

Please sign in to comment.