diff options
author | Georg Brandl <georg@python.org> | 2009-04-01 15:53:15 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2009-04-01 15:53:15 (GMT) |
commit | c7485064278efb9231df982866ec2c0051814c74 (patch) | |
tree | 55224928d391f5056cb71606e31c75f9ba6e269b /Lib/test/test_xmlrpc.py | |
parent | 9ae3640b0e26819a8df2ce8ba4541f94dea92d5c (diff) | |
download | cpython-c7485064278efb9231df982866ec2c0051814c74.zip cpython-c7485064278efb9231df982866ec2c0051814c74.tar.gz cpython-c7485064278efb9231df982866ec2c0051814c74.tar.bz2 |
#5636: fix next -> __next__ in csv reader docs.
Diffstat (limited to 'Lib/test/test_xmlrpc.py')
-rw-r--r-- | Lib/test/test_xmlrpc.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/test/test_xmlrpc.py b/Lib/test/test_xmlrpc.py index d1ed40f..1f5f5aa 100644 --- a/Lib/test/test_xmlrpc.py +++ b/Lib/test/test_xmlrpc.py @@ -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() |