comparison testcases.py @ 106:aa0378ea1f93

Replaced constant properties with regular attributes
author Oleg Oshmyan <chortos@inbox.lv>
date Fri, 08 Apr 2011 18:00:51 +0300
parents 9f922b11c98a
children 218b8c28549c
comparison
equal deleted inserted replaced
105:9f922b11c98a 106:aa0378ea1f93
126 'process', 'time_started', 'time_stopped', 126 'process', 'time_started', 'time_stopped',
127 'realinname', 'realoutname', 'maxcputime', 'maxwalltime', 127 'realinname', 'realoutname', 'maxcputime', 'maxwalltime',
128 'maxmemory', 'has_called_back', 'files_to_delete', 128 'maxmemory', 'has_called_back', 'files_to_delete',
129 'cpu_time_limit_string', 'wall_time_limit_string', 129 'cpu_time_limit_string', 'wall_time_limit_string',
130 'time_limit_string') 130 'time_limit_string')
131 has_ansfile = has_iofiles = False
131 needs_realinname = True 132 needs_realinname = True
132 133
133 if ABCMeta: 134 if ABCMeta:
134 __metaclass__ = ABCMeta 135 __metaclass__ = ABCMeta
135 136
175 elif getattr(case, 'time_stopped', None) is None: 176 elif getattr(case, 'time_stopped', None) is None:
176 case.time_stopped = now 177 case.time_stopped = now
177 if not case.has_called_back: 178 if not case.has_called_back:
178 callback() 179 callback()
179 case.cleanup() 180 case.cleanup()
180
181 @property
182 def has_iofiles(case):
183 return False
184
185 @property
186 def has_ansfile(case):
187 return False
188 181
189 def cleanup(case): 182 def cleanup(case):
190 #if getattr(case, 'infile', None): 183 #if getattr(case, 'infile', None):
191 # case.infile.close() 184 # case.infile.close()
192 #if getattr(case, 'outfile', None): 185 #if getattr(case, 'outfile', None):