Installing ndg-httpsclient on Python2.7 can cause a TypeError
https://travis-ci.org/VcamX/pywikibot-core/jobs/70758871
====================================================================== ERROR: test_https_cert_error (tests.http_tests.HttpsCertificateTestCase) Test http.request fails on invalid omegawiki SSL certificate. ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/travis/build/VcamX/pywikibot-core/tests/http_tests.py", line 92, in test_https_cert_error uri='https://www.omegawiki.org/') File "/opt/python/2.7.9/lib/python2.7/unittest/case.py", line 473, in assertRaises callableObj(*args, **kwargs) File "/home/travis/build/VcamX/pywikibot-core/pywikibot/tools/__init__.py", line 1227, in wrapper return obj(*__args, **__kw) File "/home/travis/build/VcamX/pywikibot-core/pywikibot/comms/http.py", line 230, in request r = fetch(uri, method, body, headers, **kwargs) File "/home/travis/build/VcamX/pywikibot-core/pywikibot/comms/http.py", line 363, in fetch error_handling_callback(request) File "/home/travis/build/VcamX/pywikibot-core/pywikibot/comms/http.py", line 280, in error_handling_callback raise request.data TypeError: __str__ returned non-string (type Error)