This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author nadeem.vawda
Recipients nadeem.vawda, orsenthil, vstinner
Date 2011-03-21.01:38:13
SpamBayes Score 0.00016484439
Marked as misclassified No
Message-id <1300671494.25.0.319140575333.issue10883@psf.upfronthosting.co.za>
In-reply-to
Content
> I saw the partial fix suggested by the patch, but for some reason I
> did not see ResourceWarning being shutup.

Do you mean that you aren't getting ResourceWarnings in the first place?
Or that you are getting warnings, and the partial fix isn't getting rid
of any of them?

Note: it doesn't get rid of *all* of the warnings for test_urllib2net;
only some of them.

About the remaining warnings, it seems that FTPHandler.ftp_open() creates
an ftpwrapper object to connect to the server, and then the ftpwrapper
doesn't get closed anywhere. It has to stay open until the caller has
finished reading from the connection, so finding the right place to close
it might be a bit tricky.
History
Date User Action Args
2011-03-21 01:38:14nadeem.vawdasetrecipients: + nadeem.vawda, orsenthil, vstinner
2011-03-21 01:38:14nadeem.vawdasetmessageid: <1300671494.25.0.319140575333.issue10883@psf.upfronthosting.co.za>
2011-03-21 01:38:13nadeem.vawdalinkissue10883 messages
2011-03-21 01:38:13nadeem.vawdacreate