XZise created this task.
XZise added a subscriber: XZise.
XZise added projects: pywikibot-core, Pywikibot-tests.
Restricted Application added subscribers: Aklapper, pywikipedia-bugs.
TASK DESCRIPTION
In a recent [[
https://travis-ci.org/xZise/pywikibot-core/jobs/58961497#L2724|test on
Travis]] the weblib test errored on Python 2.6. From the stacktrace it appears that None
was returned by `pywikibot.weblib.getInternetArchiveURL` which only happens when `closest`
is not in the JSON answer. I did two tests locally with Python 2.6.9 and it works fine:
```
>> from pywikibot.weblib import
getInternetArchiveURL as U
>> U('https://google.com')
u'http://web.archive.org/web/20150417171945/https://www.google.com/'
>> U(u'https://google.com')
u'http://web.archive.org/web/20150417171945/https://www.google.com/'
```
So this may be just a random failure or a short outage from
archive.org (as the tests
for the other Python versions worked). Also the other non-nosetest with Python 2.6 failed
but I restarted it. There both test failed (which could implicate that the outage started
or ended between the tests in the first test).
TASK DETAIL
https://phabricator.wikimedia.org/T96441
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign
<username>.
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: XZise
Cc: pywikipedia-bugs, Aklapper, XZise, jayvdb