#5636: fix next -> __next__ in csv reader docs.

This commit is contained in:
Georg Brandl 2009-04-01 15:53:15 +00:00
parent 9ae3640b0e
commit c748506427
3 changed files with 9 additions and 8 deletions

View file

@ -598,7 +598,11 @@ class CGIHandlerTestCase(unittest.TestCase):
sys.stdin = open("xmldata.txt", "r")
sys.stdout = open(support.TESTFN, "w")
self.cgi.handle_request()
os.environ['CONTENT_LENGTH'] = str(len(data))
try:
self.cgi.handle_request()
finally:
del os.environ['CONTENT_LENGTH']
sys.stdin.close()
sys.stdout.close()