diff testcases.py @ 79:ee8a99dcaaed

Renamed configuration variable tasknames to problems
author Oleg Oshmyan <chortos@inbox.lv>
date Mon, 17 Jan 2011 11:11:01 +0000
parents 69eadc60f4e2
children 24752db487c5
line wrap: on
line diff
--- a/testcases.py	Thu Jan 13 19:48:33 2011 +0200
+++ b/testcases.py	Mon Jan 17 11:11:01 2011 +0000
@@ -579,8 +579,7 @@
 				inputdatafname = case.problem.config.inname
 				contextmgr = Copying(case.infile, inputdatafname)
 			with contextmgr:
-				# FIXME: this U doesn't do anything good for the child process, does it?
-				with open(inputdatafname, 'rU') as infile:
+				with open(inputdatafname) as infile:
 					with tempfile.TemporaryFile('w+') if options.erase and not case.validator else open(case.problem.config.outname, 'w+') as outfile:
 						if call is not None:
 							call(case.problem.config.path, case=case, stdin=infile, stdout=outfile, stderr=devnull, universal_newlines=True, bufsize=-1, preexec_fn=preexec_fn)