# HG changeset patch # User Oleg Oshmyan # Date 1298905840 0 # Node ID 3ae6cb69e4ef7550c3076d123db56574dc712fa1 # Parent cd347cfca27292337d6e0f9857856482dce1fa53 Sample total is no longer printed if there are no samples diff -r cd347cfca272 -r 3ae6cb69e4ef testcases.py --- a/testcases.py Mon Feb 28 11:28:46 2011 +0000 +++ b/testcases.py Mon Feb 28 15:10:40 2011 +0000 @@ -404,11 +404,12 @@ for i in group: s = str(i).zfill(prob.config.padtests) prob.cache.padoutput = max(prob.cache.padoutput, len(s)) - yield DummyTestContext() - for i in prob.config.dummies: - s = str(i).zfill(prob.config.paddummies) - yield _types[prob.config.kind](prob, s, True, 0) - yield problem.test_context_end + if prob.config.dummies: + yield DummyTestContext() + for i in prob.config.dummies: + s = str(i).zfill(prob.config.paddummies) + yield _types[prob.config.kind](prob, s, True, 0) + yield problem.test_context_end for k, group in enumerate(prob.config.tests): if not group: continue