Xqt created this task.
Xqt added a project: Pywikibot-tests.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.
Restricted Application added a project: Pywikibot.
TASK DESCRIPTION
________________ TestInvalidInterwikiLinks.test_non_wiki_prefix
________________
pywikibot.exceptions.TimeoutError: Maximum retries attempted without
success.
During handling of the above exception, another exception occurred:
self = <tests.link_tests.TestInvalidInterwikiLinks
testMethod=test_non_wiki_prefix>
def test_non_wiki_prefix(self):
"""Test that Link fails if the interwiki prefix is not a wiki."""
link = Link('bugzilla:1337', source=self.site)
self.assertRaisesRegex(
Error,
'bugzilla:1337 is not a local page on wikipedia:en, and the '
'interwiki prefix bugzilla is not supported by Pywikibot!',
> link.parse)
E AssertionError: "bugzilla:1337 is not a local page on wikipedia:en,
and the interwiki prefix bugzilla is not supported by Pywikibot!" does not
match "Maximum retries attempted without success."
tests/link_tests.py:985: AssertionError
------------------------------ Captured log call
-------------------------------
VERBOSE pywiki:logging.py:101 Found 1 wikimedia:wikimedia processes
running, including this one.
WARNING pywiki:logging.py:101 Non-JSON response received from server
wikimedia:wikimedia; the server may be down.
WARNING pywiki:logging.py:101 Waiting 5.0 seconds before retrying.
WARNING pywiki:logging.py:101 Non-JSON response received from server
wikimedia:wikimedia; the server may be down.
WARNING pywiki:logging.py:101 Waiting 10.0 seconds before retrying.
WARNING pywiki:logging.py:101 Non-JSON response received from server
wikimedia:wikimedia; the server may be down.
_______________ TestInvalidInterwikiLinks.test_other_wiki_prefix
_______________
self = <tests.link_tests.TestInvalidInterwikiLinks
testMethod=test_other_wiki_prefix>
def test_other_wiki_prefix(self):
"""Test that Link fails if the interwiki prefix is a unknown
family."""
link = Link('bulba:this-will-never-work', source=self.site)
self.assertRaisesRegex(
Error,
'bulba:this-will-never-work is not a local page on
wikipedia:en, '
'and the interwiki prefix bulba is not supported by Pywikibot!',
> link.parse)
E AssertionError: Error not raised by parse
tests/link_tests.py:994: AssertionError
------------------------------ Captured log call
-------------------------------
VERBOSE pywiki:logging.py:101 Found 1 bulba:bulba processes running,
including this one.
TASK DETAIL
https://phabricator.wikimedia.org/T272383
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Xqt
Cc: Aklapper, Xqt, pywikibot-bugs-list, JohnsonLee01, SHEKH, Dijkstra, Khutuck,
Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus,
Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs