Skip to content


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/
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 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):
Expand Down

1 comment on commit 3772537

Copy link

@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/", line 108, in testFeatures
    features = vector.features(test_layer_invalid_geoms)
  File "/home/travis/build/qgis/QGIS/build/output/python/plugins/processing/tools/", line 146, in features
    return Features(layer, request)
  File "/home/travis/build/qgis/QGIS/build/output/python/plugins/processing/tools/", line 131, in __init__
    self.iter = filter(filterFeature, self.iter, False)
TypeError: filter expected 2 arguments, got 3

Please sign in to comment.