https://travis-ci.org/wikimedia/pywikibot/jobs/633377685#L1496
https://api.travis-ci.org/v3/job/679015138/log.txt
====================================================================== ERROR: test_item (tests.site_tests.TestDataSitePreloading) Test that ItemPage preloading works for Item objects. ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/travis/build/wikimedia/pywikibot/tests/site_tests.py", line 3358, in test_item for num in range(1, 6)] File "/home/travis/build/wikimedia/pywikibot/tests/site_tests.py", line 3358, in <listcomp> for num in range(1, 6)] File "/home/travis/build/wikimedia/pywikibot/pywikibot/page.py", line 4416, in __init__ ns = site.item_namespace File "/home/travis/build/wikimedia/pywikibot/pywikibot/site.py", line 7668, in item_namespace self._item_namespace = self.get_namespace_for_entity_type('item') File "/home/travis/build/wikimedia/pywikibot/pywikibot/site.py", line 7657, in get_namespace_for_entity_type .format(self, entity_type)) pywikibot.exceptions.EntityTypeUnknownException: DataSite("wikidata", "wikidata") does not support entity type "item"
___________ TestCategoryFromWikibase.test_page_from_repository_de_wp ___________ self = <tests.site_tests.TestCategoryFromWikibase testMethod=test_page_from_repository_de_wp> def wrapped_method(self): sitedata = self.sites[key] self.site_key = key self.family = sitedata['family'] self.code = sitedata['code'] self.site = sitedata['site'] > func(self, key) tests/aspects.py:748: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/site_tests.py:3787: in test_page_from_repository page = site.page_from_repository(self.ITEM) pywikibot/site.py:2814: in page_from_repository dp = pywikibot.ItemPage(repo, item) pywikibot/page.py:4422: in __init__ ns = site.item_namespace pywikibot/site.py:7668: in item_namespace self._item_namespace = self.get_namespace_for_entity_type('item') _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = DataSite("wikidata", "wikidata"), entity_type = 'item' def get_namespace_for_entity_type(self, entity_type): """ Return namespace for given entity type. @return: corresponding namespace @rtype: Namespace """ if not hasattr(self, '_entity_namespaces'): self._cache_entity_namespaces() if entity_type in self._entity_namespaces: return self._entity_namespaces[entity_type] raise EntityTypeUnknownException( '{0!r} does not support entity type "{1}"' > .format(self, entity_type)) E EntityTypeUnknownException: DataSite("wikidata", "wikidata") does not support entity type "item" pywikibot/site.py:7657: EntityTypeUnknownException