[issue14341] sporadic (?) test_urllib2 failures
R. David Murray
report at bugs.python.org
Fri Apr 6 19:48:17 CEST 2012
R. David Murray <rdmurray at 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.
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list