Mercurial > ~astiob > upreckon > hgweb
comparison problem.py @ 145:d2c266c8d820
Output-only problems no longer print times
author | Oleg Oshmyan <chortos@inbox.lv> |
---|---|
date | Fri, 27 May 2011 22:39:46 +0100 |
parents | 523ba6907f3a |
children |
comparison
equal
deleted
inserted
replaced
144:25b929aa92a1 | 145:d2c266c8d820 |
---|---|
130 if case.isdummy: | 130 if case.isdummy: |
131 id = 'sample ' + id | 131 id = 'sample ' + id |
132 say('%*s: ' % (prob.cache.padoutput, id), end='') | 132 say('%*s: ' % (prob.cache.padoutput, id), end='') |
133 sys.stdout.flush() | 133 sys.stdout.flush() |
134 try: | 134 try: |
135 granted = case(lambda: (say('%7.3f%s s, ' % (case.time_stopped - case.time_started, case.time_limit_string), end=''), sys.stdout.flush())) | 135 if prob.config.kind != 'outonly': |
136 granted = case(lambda: (say('%7.3f%s s, ' % (case.time_stopped - case.time_started, case.time_limit_string), end=''), sys.stdout.flush())) | |
137 else: | |
138 granted = case(lambda: None) | |
136 except testcases.TestCaseSkipped: | 139 except testcases.TestCaseSkipped: |
137 verdict = 'skipped due to skimming mode' | 140 verdict = 'skipped due to skimming mode' |
138 except testcases.CanceledByUser: | 141 except testcases.CanceledByUser: |
139 verdict = 'canceled by the user' | 142 verdict = 'canceled by the user' |
140 except testcases.WallTimeLimitExceeded: | 143 except testcases.WallTimeLimitExceeded: |