| Xqt created this task. Xqt added projects: Pywikibot-core, Pywikibot-tests. Herald added subscribers: pywikibot-bugs-list, Aklapper. |
TASK DESCRIPTION
=================================== FAILURES =================================== ________________________ TestIsbnWikibaseBot.test_isbn _________________________
self = <tests.isbn_tests.TestIsbnWikibaseBot testMethod=test_isbn>
def test_isbn(self):
"""Test using the bot and wikibase."""
> main('-page:' + self.test_page_qid, '-always', '-format')
tests/isbn_tests.py:243:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
scripts/isbn.py:1670: in main
bot.run()
pywikibot/bot.py:1555: in run
super(Bot, self).run()
pywikibot/bot.py:1464: in run
self.treat(page)
pywikibot/bot.py:1755: in treat
super(ExistingPageBot, self).treat(page)
pywikibot/bot.py:1678: in treat
self.treat_page()
pywikibot/bot.py:2081: in treat_page
self.treat_page_and_item(page, item)
scripts/isbn.py:1567: in treat_page_and_item
if self.isbn_10_prop_id in item.claims:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = ItemPage(Q943), name = 'claims'
def __getattribute__(self, name):
"""Low-level attribute getter. Deprecates lastrevid."""
if name == 'lastrevid':
issue_deprecation_warning(
'WikibasePage.lastrevid', 'latest_revision_id', 2)
name = '_revid'
> return super(WikibasePage, self).__getattribute__(name)
E AttributeError: 'ItemPage' object has no attribute 'claims'
pywikibot/page.py:3677: AttributeErrorTASK DETAIL
EMAIL PREFERENCES
To: Xqt
Cc: murfel, m4tx, matej_suchanek, Aklapper, Xqt, pywikibot-bugs-list, Magul, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, jayvdb, Dalba, Masti, Alchimista, Rxy
Cc: murfel, m4tx, matej_suchanek, Aklapper, Xqt, pywikibot-bugs-list, Magul, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, jayvdb, Dalba, Masti, Alchimista, Rxy
_______________________________________________ pywikibot-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
