Xqt created this task.
Xqt added projects: Pywikibot, Pywikibot-tests.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION
======================================================================
ERROR: testLinks (tests.page_tests.TestPageObject)
Test the different types of links from a page.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/runner/work/pywikibot/pywikibot/tests/page_tests.py", line
535, in testLinks
iw = set(mainpage.interwiki(expand=True))
File "/home/runner/work/pywikibot/pywikibot/pywikibot/page/_basepage.py",
line 1583, in interwiki
if link.site != self.site \
File "/home/runner/work/pywikibot/pywikibot/pywikibot/page/_links.py",
line 493, in site
self.parse()
File "/home/runner/work/pywikibot/pywikibot/pywikibot/page/_links.py",
line 395, in parse
newsite = self._site.interwiki(prefix)
File "/home/runner/work/pywikibot/pywikibot/pywikibot/site/_apisite.py",
line 161, in interwiki
return self._interwikimap[prefix].site
File
"/home/runner/work/pywikibot/pywikibot/pywikibot/site/_interwikimap.py", line
77, in __getitem__
raise self._iw_sites[prefix].site
File
"/home/runner/work/pywikibot/pywikibot/pywikibot/site/_interwikimap.py", line
26, in site
self._site = pywikibot.Site(
File "/home/runner/work/pywikibot/pywikibot/pywikibot/__init__.py", line
205, in Site
code, fam = _code_fam_from_url(url, fam)
File "/home/runner/work/pywikibot/pywikibot/pywikibot/__init__.py", line
108, in _code_fam_from_url
code = family.from_url(url)
File "/home/runner/work/pywikibot/pywikibot/pywikibot/family.py", line
651, in from_url
raise RuntimeError(
RuntimeError: Found multiple matches for URL
"https://wikisource.org/wiki/$1": wsbeta:sr, wsbeta:sq, wsbeta:simple
======================================================================
ERROR: test_constructors (tests.site_tests.TestSiteObject)
(dbname='sourceswiki')
Test cases for site constructors.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/runner/work/pywikibot/pywikibot/tests/site_tests.py", line
84, in test_constructors
pywikibot.site.APISite.fromDBName(dbname, site),
File "/home/runner/work/pywikibot/pywikibot/pywikibot/site/_apisite.py",
line 239, in fromDBName
return pywikibot.Site(url=url)
File "/home/runner/work/pywikibot/pywikibot/pywikibot/__init__.py", line
205, in Site
code, fam = _code_fam_from_url(url, fam)
File "/home/runner/work/pywikibot/pywikibot/pywikibot/__init__.py", line
108, in _code_fam_from_url
code = family.from_url(url)
File "/home/runner/work/pywikibot/pywikibot/pywikibot/family.py", line
651, in from_url
raise RuntimeError(
RuntimeError: Found multiple matches for URL
"https://wikisource.org/w/index.php": wsbeta:sr, wsbeta:sq, wsbeta:simple
----------------------------------------------------------------------
TASK DETAIL
https://phabricator.wikimedia.org/T399692
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]