Skip to content

Commit

Permalink
add missed import
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Jan 9, 2017
1 parent 3067648 commit 3772537
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/plugins/processing/tests/ToolsTest.py
Expand Up @@ -32,6 +32,7 @@
from qgis.core import (QgsVectorLayer, QgsFeatureRequest)
from qgis.testing import start_app, unittest

from processing.core.GeoAlgorithmExecutionException import GeoAlgorithmExecutionException
from processing.core.ProcessingConfig import ProcessingConfig
from processing.tests.TestData import testDataPath, points, invalid_geometries
from processing.tools import vector
Expand Down Expand Up @@ -112,7 +113,7 @@ def testFeatures(self):

ProcessingConfig.setSettingValue(ProcessingConfig.FILTER_INVALID_GEOMETRIES, previous_value_invalid_geoms)
ProcessingConfig.setSettingValue(ProcessingConfig.USE_SELECTED, previous_value)


def testValues(self):
ProcessingConfig.initialize()
Expand Down

1 comment on commit 3772537

@rldhont
Copy link
Contributor

@rldhont rldhont commented on 3772537 Jan 9, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New error

Traceback (most recent call last):
  File "/home/travis/build/qgis/QGIS/python/plugins/processing/tests/ToolsTest.py", line 108, in testFeatures
    features = vector.features(test_layer_invalid_geoms)
  File "/home/travis/build/qgis/QGIS/build/output/python/plugins/processing/tools/vector.py", line 146, in features
    return Features(layer, request)
  File "/home/travis/build/qgis/QGIS/build/output/python/plugins/processing/tools/vector.py", line 131, in __init__
    self.iter = filter(filterFeature, self.iter, False)
TypeError: filter expected 2 arguments, got 3

Please sign in to comment.