comparison testcases.py @ 54:1914ae9cfdce

Bug fixes
author Oleg Oshmyan <chortos@inbox.lv>
date Mon, 20 Dec 2010 22:44:34 +0200
parents 4ea7133ac25c
children c726235e49ee
comparison
equal deleted inserted replaced
53:394aec9712b6 54:1914ae9cfdce
353 # Well, at least we tried 353 # Well, at least we tried
354 pass 354 pass
355 case.open_infile() 355 case.open_infile()
356 case.time_started = None 356 case.time_started = None
357 if case.problem.config.stdio: 357 if case.problem.config.stdio:
358 if options.erase and not case.validator and case.problem.config.inname: 358 if options.erase and not case.validator or not case.problem.config.inname:
359 # TODO: re-use the same file name if possible 359 # TODO: re-use the same file name if possible
360 # FIXME: 2.5 lacks the delete parameter 360 # FIXME: 2.5 lacks the delete parameter
361 with tempfile.NamedTemporaryFile(delete=False) as f: 361 with tempfile.NamedTemporaryFile(delete=False) as f:
362 inputdatafname = f.name 362 inputdatafname = f.name
363 contextmgr = CopyDeleting(case, case.infile, inputdatafname) 363 contextmgr = CopyDeleting(case, case.infile, inputdatafname)