jayvdb added a comment.
In
https://phabricator.wikimedia.org/T98671#1301633, @VcamX wrote:
Test 7
<https://travis-ci.org/VcamX/pywikibot-core/jobs/63499106> and 8
<https://travis-ci.org/VcamX/pywikibot-core/jobs/63499111> failed because requests
introduced some warning to stderr, which cause some `assertIsNone(stderr_other)` failed.
So I think we could ignore this assertion error.
I agree this assertion is very likely to not be a significant problem, however we need the
tests to pass. ;-)
It looks like this is a problem only with the Python 2.6 builds, so any solution should
use 'if sys.version_info < (2, 7):' so the 'solution' doesnt affect
more modern python versions which dont need fixing.
There are three possible options that I can see quickly, which may or may not work:
1. call urllib3.disable_warnings() somewhere to prevent this warning
2. try to fix the security problem described by this warning, e.g. by installing root
certificates -
https://urllib3.readthedocs.org/en/latest/security.html#certifi-with-urllib3
3. silence this specific warning only. I believe it is being captured by the logging
layer, and is being routed through pywikibot/userinterfaces/terminal_interface_base.py
TerminalHandler.emit , so you may be able to detect and suppress this warning in there.
TASK DETAIL
https://phabricator.wikimedia.org/T98671
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: VcamX, jayvdb
Cc: XZise, Ricordisamoa, Aklapper, jayvdb, pywikipedia-bugs