Skip to content
Permalink
Browse files

Python 3 update for processing tests

  • Loading branch information
m-kuhn committed Apr 14, 2016
1 parent 709d3ce commit d283223c56d5903e2cff852a2a56feb1cceac34d
Showing with 4 additions and 4 deletions.
  1. +4 −4 python/plugins/processing/tests/AlgorithmsTestBase.py
@@ -76,10 +76,10 @@ def check_algorithm(self, name, defs):
for param in zip(alg.parameters, params):
param[0].setValue(param[1])
else:
for k, p in params.iteritems():
for k, p in params.items():
alg.setParameterValue(k, p)

for r, p in defs['results'].iteritems():
for r, p in defs['results'].items():
alg.setOutputValue(r, self.load_result_param(p))

expectFailure = False
@@ -109,7 +109,7 @@ def load_params(self, params):
if isinstance(params, list):
return [self.load_param(p) for p in params]
elif isinstance(params, dict):
return {key: self.load_param(p) for key, p in params.iteritems()}
return {key: self.load_param(p) for key, p in params.items()}
else:
return params

@@ -178,7 +178,7 @@ def check_results(self, results, expected):
"""
Checks if result produced by an algorithm matches with the expected specification.
"""
for id, expected_result in expected.iteritems():
for id, expected_result in expected.items():
if 'vector' == expected_result['type']:
expected_lyr = self.load_layer(expected_result)
try:

0 comments on commit d283223

Please sign in to comment.
You can’t perform that action at this time.