changeset 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 af9c45708987
children 44609b41868b
files 2.00/testcases.py
diffstat 1 files changed, 0 insertions(+), 1 deletions(-) [+]
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)