Skip to content
Browse files

add missed import

  • Loading branch information
alexbruy committed Jan 9, 2017
1 parent 3067648 commit 37725379f240aafcf26444a1be42e5575965420f
Showing with 2 additions and 1 deletion.
  1. +2 −1 python/plugins/processing/tests/
@@ -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
@@ -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):

1 comment on commit 3772537


This comment has been minimized.

Copy link

@rldhont rldhont commented on 3772537 Jan 9, 2017

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.
You can’t perform that action at this time.