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 "C:\projects\pywikibot\pywikibot\tools\__init__.py", line 767, in
wrapper
return getattr(obj, cache_name)
File "C:\projects\pywikibot\pywikibot\site\_basesite.py", line 208, in
__getattr__
raise AttributeError(f'{type(self).__name__} instance has no '
AttributeError: APISite instance has no attribute '_namespaces'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\projects\pywikibot\tests\page_tests.py", line 525, in testLinks
iw = list(mainpage.interwiki(expand=True))
File "C:\projects\pywikibot\pywikibot\page\_basepage.py", line 1495, in
interwiki
if link.site != self.site \
File "C:\projects\pywikibot\pywikibot\page\_links.py", line 502, in site
self.parse()
File "C:\projects\pywikibot\pywikibot\page\_links.py", line 487, in parse
elif self._site.namespaces[self._namespace].case == 'first-letter':
File "C:\projects\pywikibot\pywikibot\tools\__init__.py", line 769, in
wrapper
val = fn(obj)
File "C:\projects\pywikibot\pywikibot\site\_basesite.py", line 254, in
namespaces
return NamespacesDict(self._build_namespaces())
File "C:\projects\pywikibot\pywikibot\site\_apisite.py", line 1178, in
_build_namespaces
for nsdata in self.siteinfo.get('namespaces', cache=False).values():
File "C:\projects\pywikibot\pywikibot\site\_siteinfo.py", line 273, in get
preloaded = self._get_general(key, expiry)
File "C:\projects\pywikibot\pywikibot\site\_siteinfo.py", line 213, in
_get_general
self._cache[prop] = default_info[prop]
KeyError: 'namespaces'
----------------------------------------------------------------------
Ran 3196 tests in 1259.196s
FAILED (errors=1, skipped=85, expected failures=44)
This test fails only sometimes and the reason is not obvious.
TASK DETAIL
https://phabricator.wikimedia.org/T356009
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Xqt
Cc: Aklapper, Xqt, pywikibot-bugs-list, mevo, PotsdamLamb, Jyoo1011,
JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS,
Mdupont, JJMC89, Dvorapa, Altostratus, binbot, Avicennasis, mys_721tx, jayvdb,
Masti, Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]