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 https://api.travis-ci.org/v3/job/740951352/log.txt ______________________ TestPageHistory.test_contributors _______________________ self = <tests.page_tests.TestPageHistory testMethod=test_contributors> def test_contributors(self): """Test Page.contributors().""" mp = self.get_mainpage() > cnt = mp.contributors() tests/page_tests.py:897: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pywikibot/page/__init__.py:1725: in contributors return Counter(rev.user for rev in /opt/python/3.9-dev/lib/python3.9/collections/__init__.py:593: in __init__ self.update(iterable, **kwds) /opt/python/3.9-dev/lib/python3.9/collections/__init__.py:679: in update _count_elements(self, iterable) pywikibot/page/__init__.py:1725: in <genexpr> return Counter(rev.user for rev in pywikibot/page/_revision.py:97: in __getitem__ return self.__missing__(name) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Revision({'revid': 889268954, 'parentid': 889268681, 'minor': True, 'userhidden': '', 'timestamp': Timestamp(2019, 3, ...n': '', 'tags': ['mw-rollback'], 'anon': False, 'comment': '', 'text': None, 'contentmodel': 'wikitext', 'sha1': None}) key = 'user' def __missing__(self, key): """Provide backward compatibility for exceptions.""" if key == 'parentid': raise AssertionError( 'Revision {rev.revid} was instantiated without a parent id' .format(rev=self)) if key == 'rollbacktoken': warning('"rollbacktoken" has been deprecated since MediaWiki 1.24') return None # raise AttributeError instead of KeyError for backward compatibility > raise AttributeError("'{}' object has no attribute '{}'" .format(self.__class__.__name__, key)) E AttributeError: 'Revision' object has no attribute 'user' pywikibot/page/_revision.py:126: AttributeError _____________________ TestPageHistory.test_revision_count ______________________ self = <tests.page_tests.TestPageHistory testMethod=test_revision_count> def test_revision_count(self): """Test Page.edit_count().""" mp = self.get_mainpage() rev_count = len(list(mp.revisions())) > self.assertEqual(rev_count, mp.revision_count()) tests/page_tests.py:905: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pywikibot/page/__init__.py:1748: in revision_count cnt = self.contributors() pywikibot/page/__init__.py:1725: in contributors return Counter(rev.user for rev in /opt/python/3.9-dev/lib/python3.9/collections/__init__.py:593: in __init__ self.update(iterable, **kwds) /opt/python/3.9-dev/lib/python3.9/collections/__init__.py:679: in update _count_elements(self, iterable) pywikibot/page/__init__.py:1725: in <genexpr> return Counter(rev.user for rev in pywikibot/page/_revision.py:97: in __getitem__ return self.__missing__(name) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Revision({'revid': 889268954, 'parentid': 889268681, 'minor': True, 'userhidden': '', 'timestamp': Timestamp(2019, 3, ...n': '', 'tags': ['mw-rollback'], 'anon': False, 'comment': '', 'text': None, 'contentmodel': 'wikitext', 'sha1': None}) key = 'user' def __missing__(self, key): """Provide backward compatibility for exceptions.""" if key == 'parentid': raise AssertionError( 'Revision {rev.revid} was instantiated without a parent id' .format(rev=self)) if key == 'rollbacktoken': warning('"rollbacktoken" has been deprecated since MediaWiki 1.24') return None # raise AttributeError instead of KeyError for backward compatibility > raise AttributeError("'{}' object has no attribute '{}'" .format(self.__class__.__name__, key)) E AttributeError: 'Revision' object has no attribute 'user' pywikibot/page/_revision.py:126: AttributeError TASK DETAIL https://phabricator.wikimedia.org/T267120 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Aklapper, pywikibot-bugs-list, Xqt, 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
