# HG changeset patch # User Oleg Oshmyan # Date 1299096224 0 # Node ID 9b41934b2e95c0ad91f3d76d21f1caef7e7bb538 # Parent 62a96d51bf94d55372f884edb3a40d250231e8bb Fixed a major regression introduced in changeset 1fb319ec33af testcases.load_problem now always handles the True sent by Problem.test. diff -r 62a96d51bf94 -r 9b41934b2e95 testcases.py --- a/testcases.py Wed Mar 02 19:52:03 2011 +0000 +++ b/testcases.py Wed Mar 02 20:03:44 2011 +0000 @@ -428,7 +428,8 @@ yield DummyTestContext() for i in prob.config.dummies: s = str(i).zfill(prob.config.paddummies) - yield _types[prob.config.kind](prob, s, True, 0) + if (yield _types[prob.config.kind](prob, s, True, 0)): + yield yield problem.test_context_end for k, group in enumerate(prob.config.tests): if not group: @@ -449,7 +450,9 @@ prob.cache.padoutput = max(prob.cache.padoutput, len(s)) for i in prob.config.dummies: s = str(i).zfill(prob.config.paddummies) - yield _types[prob.config.kind](prob, s, True, 0) + if (yield _types[prob.config.kind](prob, s, True, 0)): + yield for j, i in enumerate(prob.config.tests): s = str(i).zfill(prob.config.padtests) - yield _types[prob.config.kind](prob, s, False, getpoints(i, j)) \ No newline at end of file + if (yield _types[prob.config.kind](prob, s, False, getpoints(i, j))): + yield \ No newline at end of file