Currently (r72673), test_urllib2_localnet leaks references. This is due to state implicitly shared between tests. The attached patch fixes this by removing the shared state. The problem is also present in py3k. I'll port the patch once I commit to trunk. Should this be backported so we can take test_urllib2_localnet off the refleak test blacklist in Misc/build.sh in those branches?
Yes, this is a patch for issue 6002 (sorry, didn't find it). I haven't seen any refleaks from issue 1208304, but I was only looking at this one particular failure (since it was showing up in Unladen Swallow's refleak builds).
LGTM :) This part changes the output in verbose mode, not sure it's necessary (but not a real problem either): - test_support.run_unittest(ProxyAuthTests) - test_support.run_unittest(TestUrlopen) + test_support.run_unittest(ProxyAuthTests, TestUrlopen)