Nadeem Vawda <nadeem.va...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue10512>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to