Page MenuHomePhabricator

some tests of link_tests.TestInvalidInterwikiLinks fails for new family detection with AutoFamily()
Closed, ResolvedPublic

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.

Event Timeline

Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. · View Herald Transcript
Xqt triaged this task as High priority.Jan 19 2021, 2:52 PM

Change 657644 had a related patch set uploaded (by Xqt; owner: Xqt):
[pywikibot/core@master] [tests] Update TestInvalidInterwikiLinks after AutoFamily support

https://gerrit.wikimedia.org/r/657644

Change 657644 merged by jenkins-bot:
[pywikibot/core@master] [tests] Update TestInvalidInterwikiLinks after AutoFamily support

https://gerrit.wikimedia.org/r/657644