summaryrefslogtreecommitdiff
path: root/Lib/test/test_cgi.py
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2011-02-22 03:16:07 +0000
committerBrett Cannon <bcannon@gmail.com>2011-02-22 03:16:07 +0000
commita61c71ef98a640292601a24e73a88b1e0ddafb91 (patch)
tree4caad15f2b52faf1a268682bfaf5b2a1228ba364 /Lib/test/test_cgi.py
parentd681be9037163098bf8e266d53056fd5f57db826 (diff)
downloadcpython-a61c71ef98a640292601a24e73a88b1e0ddafb91.tar.gz
Merged revisions 88496 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r88496 | brett.cannon | 2011-02-21 19:14:12 -0800 (Mon, 21 Feb 2011) | 4 lines Issue #10512: close the log file in cgi when running tests. Thanks to Nadeem Vawda for the find and an initial fix. ........
Diffstat (limited to 'Lib/test/test_cgi.py')
-rw-r--r--Lib/test/test_cgi.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_cgi.py b/Lib/test/test_cgi.py
index 3b6f59b26e..985de11d5e 100644
--- a/Lib/test/test_cgi.py
+++ b/Lib/test/test_cgi.py
@@ -155,6 +155,7 @@ class CgiTests(unittest.TestCase):
cgi.logfp = None
cgi.logfile = "/dev/null"
cgi.initlog("%s", "Testing log 3")
+ self.addCleanup(cgi.logfp.close)
cgi.log("Testing log 4")
def test_fieldstorage_readline(self):