mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
#5636: fix next -> __next__ in csv reader docs.
This commit is contained in:
parent
9ae3640b0e
commit
c748506427
3 changed files with 9 additions and 8 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue