Skip to content

Commit

Permalink
Python 3 update for processing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Apr 14, 2016
1 parent 709d3ce commit d283223
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/plugins/processing/tests/AlgorithmsTestBase.py
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit d283223

Please sign in to comment.