https://travis-ci.org/wikimedia/pywikibot/jobs/392902641#L3898
____________________ TestLogentries.test_ProtectEntry_tewp _____________________ self = <tests.logentry_tests.TestLogentries testMethod=test_ProtectEntry_tewp> 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:785: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/logentry_tests.py:121: in test_logevent self._test_logevent(logtype) tests/logentry_tests.py:106: in _test_logevent self.assertGreaterEqual(logentry.ns(), -2) pywikibot/logentries.py:109: in ns return self.data['ns'] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = {'logid': 214298, 'actionhidden': '', 'type': 'protect', 'action': 'protect', 'user': 'Anomie', 'comment': 'Testing something related to protection', 'timestamp': '2018-06-15T16:59:28Z'} key = 'ns' def __missing__(self, key): """Debug when the key is missing.""" pywikibot.debug(u"API log entry received:\n" + repr(self), _logger) if ((key in ('ns', 'title', 'pageid', 'logpage', 'params', 'action') and 'actionhidden' in self) or (key == 'comment' and 'commenthidden' in self) or (key == 'user' and 'userhidden' in self)): raise HiddenKeyError( "Log entry ({0}) has a hidden '{1}' key and you don't have " > 'permission to view it.'.format(self._type, key)) E pywikibot.exceptions.HiddenKeyError: Log entry (protect) has a hidden 'ns' key and you don't have permission to view it. pywikibot/logentries.py:43: HiddenKeyError