# HG changeset patch # User Oleg Oshmyan # Date 1291557627 -3600 # Node ID 164395af969de80c8691c1199beb9e639e296ba2 # Parent af9c45708987e591acc443858f02b10469230005 Cosmetical edit subprocess.Popen always accepts TemporaryFile instances due to their implementation. diff -r af9c45708987 -r 164395af969d 2.00/testcases.py --- 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)