[Python-checkins] r88497 - in python/branches/release32-maint: Lib/test/test_cgi.py
brett.cannon
python-checkins at python.org
Tue Feb 22 04:16:07 CET 2011
Author: brett.cannon
Date: Tue Feb 22 04:16:07 2011
New Revision: 88497
Log:
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.
........
Modified:
python/branches/release32-maint/ (props changed)
python/branches/release32-maint/Lib/test/test_cgi.py
Modified: python/branches/release32-maint/Lib/test/test_cgi.py
==============================================================================
--- python/branches/release32-maint/Lib/test/test_cgi.py (original)
+++ python/branches/release32-maint/Lib/test/test_cgi.py Tue Feb 22 04:16:07 2011
@@ -155,6 +155,7 @@
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):
More information about the Python-checkins
mailing list