[issue10512] regrtest ResourceWarning - unclosed sockets and files
Nadeem Vawda
report at bugs.python.org
Tue Nov 23 20:24:23 CET 2010
Nadeem Vawda <nadeem.vawda at gmail.com> added the comment:
Attached is a patch that fixes the warnings in test_xmlrpc, along with some other file- and socket-related warnings in test_normalization, test_timeout and test_tk that only show up when regrtest is run with -uall.
The warning in test_timeout could be fixed with a smaller modification of the test code, but I thought it was better to have two separate attributes for the two sockets. It seemed misleading to have _some_ of the setup/teardown code in setUp() and tearDown(), but then be doing more in the actual tests.
The warnings in test_multiprocessing seem to be due to leaks in the actual multiprocessing module, not in the test code, so that might be a bit more work to fix.
----------
title: regrtest ResourceWarning - unclosed socket -> regrtest ResourceWarning - unclosed sockets and files
Added file: http://bugs.python.org/file19789/resourcewarning-fixes-2.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10512>
_______________________________________
More information about the Python-bugs-list
mailing list