https://bugzilla.wikimedia.org/show_bug.cgi?id=64137
Bug ID: 64137 Summary: Revision key not found Product: Pywikibot Version: core (2.0) Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: info@gno.de Web browser: --- Mobile Platform: ---
Running page_tests an error occurs:
c:\Pywikipedia\ssh\pywikibot\core>pwb.py tests/page_tests ...E............. ====================================================================== ERROR: testApiMethods (__main__.TestPageObject) Test various methods that rely on API. ---------------------------------------------------------------------- Traceback (most recent call last): File "tests/page_tests.py", line 297, in testApiMethods self.assertType(mainpage.editTime(), pywikibot.Timestamp) File "C:\Pywikipedia\ssh\pywikibot\core\pywikibot\page.py", line 457, in editT ime return self._revisions[rev].timestamp KeyError: 598252063
---------------------------------------------------------------------- Ran 17 tests in 0.440s
FAILED (errors=1)
c:\Pywikipedia\ssh\pywikibot\core>
Seems that self.site.loadrevisions(self) in editTime() method does not load the needed revision as expected.