Issue #10512: close the log file in cgi when running tests.
Thanks to Nadeem Vawda for the find and an initial fix.
This commit is contained in:
parent
7a54073a56
commit
eeb114b028
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue