diff options
-rw-r--r-- | Lib/test/test_cgi.py | 1 | ||||
-rw-r--r-- | Misc/NEWS | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_cgi.py b/Lib/test/test_cgi.py index 3b6f59b..985de11 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): @@ -54,6 +54,8 @@ Build Tests ----- +- Issue #10512: Properly close sockets under test.test_cgi. + - Issue #10992: Make tests pass under coverage. - Issue #10826: Prevent sporadic failure in test_subprocess on Solaris due |