[issue11550] Fix ResourceWarning in test_pulldom

Ben Hayden report at bugs.python.org
Tue Mar 15 15:01:38 CET 2011


Ben Hayden <hayden767 at gmail.com> added the comment:

I was unclear as to why the list() calls were there. I thought it would just change the iterator into a list - I didn't know that actually was needed for the test - my mistake. I'll change it back to the list() - but I'll need to loop over the first list to make sure and close the stream.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11550>
_______________________________________


More information about the Python-bugs-list mailing list