Mercurial > ~astiob > upreckon > hgweb
diff 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 |
line wrap: on
line diff
--- a/testcases.py Mon Dec 20 17:26:34 2010 +0200 +++ b/testcases.py Mon Dec 20 22:44:34 2010 +0200 @@ -355,7 +355,7 @@ case.open_infile() case.time_started = None if case.problem.config.stdio: - if options.erase and not case.validator and case.problem.config.inname: + if options.erase and not case.validator or not case.problem.config.inname: # TODO: re-use the same file name if possible # FIXME: 2.5 lacks the delete parameter with tempfile.NamedTemporaryFile(delete=False) as f: