R. David Murray <rdmur...@bitdance.com> added the comment:

If one changes the stacklevel in the DeprecationWarnings in the library to '2' 
instead of '1' (I believe it should be '2'), then an interesting array of 
deprecation warnings are issued...including from cookiejar code.

Most of them are in the urllib2 tests, though, and obviously they aren't being 
correctly protected.

I'm not sure what is causing the deprecation test to sometimes succeed and 
sometimes fail, though.  Running python -m unittest.test_urllib2 consistently 
fails for me without the 1->2 change, and consistently passes (but with more 
warnings) with it.

----------
nosy: +r.david.murray

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue14341>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to