comparison 2.00/test-svn.py @ 40:af9c45708987

Cemented a decision previously being unsure about The mere presense of the tasknames configuration variable now always makes problem names to be printed. This is not new, but the old behaviour (only printing names if we test more than one problem), previously commented out, has now been removed altogether.
author Oleg Oshmyan <chortos@inbox.lv>
date Sun, 05 Dec 2010 14:34:24 +0100
parents ddb3e1098727
children
comparison
equal deleted inserted replaced
39:2b459f9743b4 40:af9c45708987
108 shouldprintnames = False 108 shouldprintnames = False
109 globalconf.multiproblem = False 109 globalconf.multiproblem = False
110 globalconf.tasknames = os.path.curdir, 110 globalconf.tasknames = os.path.curdir,
111 else: 111 else:
112 globalconf.multiproblem = True 112 globalconf.multiproblem = True
113 # TODO: erase the commented part? if it has a tasknames variable, it is by definition multi-problem
114 shouldprintnames = True 113 shouldprintnames = True
115 # try:
116 # shouldprintnames = len(globalconf.tasknames) > 1
117 # except Exception:
118 # # Try to retrieve the first two problem names and cache them on success
119 # globalconf.tasknames = iter(globalconf.tasknames)
120 # try:
121 # first = next(globalconf.tasknames)
122 # except StopIteration:
123 # globalconf.tasknames = ()
124 # shouldprintnames = False
125 # else:
126 # try:
127 # second = next(globalconf.tasknames)
128 # except StopIteration:
129 # globalconf.tasknames = first,
130 # shouldprintnames = False
131 # else:
132 # globalconf.tasknames = itertools.chain((first, second), globalconf.tasknames)
133 # shouldprintnames = True
134 114
135 ntasks = 0 115 ntasks = 0
136 nfulltasks = 0 116 nfulltasks = 0
137 maxscore = 0 117 maxscore = 0
138 realscore = 0 118 realscore = 0