Skip to content
Permalink
Browse files

Try without subfunction

  • Loading branch information
Médéric Ribreux Médéric RIBREUX
Médéric Ribreux authored and Médéric RIBREUX committed May 19, 2016
1 parent cd7047c commit 03a8a8e50767ac13b553c5ecebb760f4cd21c71f
Showing with 4 additions and 7 deletions.
  1. +4 −7 python/plugins/processing/tests/AlgorithmsTestBase.py
@@ -102,20 +102,17 @@ def check_algorithm(self, name, defs):
exec('\n'.join(defs['expectedFailure'][:-1]), globals(), locals())
expectFailure = eval(defs['expectedFailure'][-1])

def doCheck():
alg.execute()

self.check_results(alg.getOutputValuesAsDictionary(), defs['results'])

if expectFailure:
try:
doCheck()
alg.execute()
self.check_results(alg.getOutputValuesAsDictionary(), defs['results'])
except Exception:
pass
else:
raise _UnexpectedSuccess
else:
doCheck()
alg.execute()
self.check_results(alg.getOutputValuesAsDictionary(), defs['results'])

def load_params(self, params):
"""

0 comments on commit 03a8a8e

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