Mercurial > ~astiob > upreckon > hgweb
diff 2.00/testcases.py @ 41:164395af969d
Cosmetical edit
subprocess.Popen always accepts TemporaryFile instances due to their implementation.
author | Oleg Oshmyan <chortos@inbox.lv> |
---|---|
date | Sun, 05 Dec 2010 15:00:27 +0100 |
parents | 2b459f9743b4 |
children | 81f58c938ec5 |
line wrap: on
line diff
--- a/2.00/testcases.py Sun Dec 05 14:34:24 2010 +0100 +++ b/2.00/testcases.py Sun Dec 05 15:00:27 2010 +0100 @@ -366,7 +366,6 @@ # FIXME: this U doesn't do anything good for the child process, does it? with open(inputdatafname, 'rU') as infile: with tempfile.TemporaryFile('w+') if options.erase and not case.validator else open(case.problem.config.outname, 'w+') as outfile: - # TODO: make sure outfile.file is passed to Popen if needed try: try: case.process = Popen(case.problem.config.path, stdin=infile, stdout=outfile, stderr=devnull, universal_newlines=True, bufsize=-1, preexec_fn=preexec_fn)