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 ocean-city
Recipients ocean-city, pitrou
Date 2009-03-30.08:10:58
SpamBayes Score 5.9202202e-06
Marked as misclassified No
Message-id <1238400660.98.0.801719040465.issue5596@psf.upfronthosting.co.za>
In-reply-to
Content
About test_urllib2_localnet, this leak happens because FakeProxyHandler
has class variable digest_auth_handler and its instance variables are
modified. Following workaround can fix this leak, but I'm not sure this
can be committed.

Index: Lib/test/test_urllib2_localnet.py
===================================================================
--- Lib/test/test_urllib2_localnet.py	(revision 70694)
+++ Lib/test/test_urllib2_localnet.py	(working copy)
@@ -241,6 +241,7 @@
 
     def tearDown(self):
         self.server.stop()
+        FakeProxyHandler.digest_auth_handler.__init__()
 
     def test_proxy_with_bad_password_raises_httperror(self):
         self._digest_auth_handler.add_password(self.REALM, self.URL,
History
Date User Action Args
2009-03-30 08:11:01ocean-citysetrecipients: + ocean-city, pitrou
2009-03-30 08:11:00ocean-citysetmessageid: <1238400660.98.0.801719040465.issue5596@psf.upfronthosting.co.za>
2009-03-30 08:10:59ocean-citylinkissue5596 messages
2009-03-30 08:10:58ocean-citycreate