Open Arfrever opened 11 years ago
test_zipwiki.Test_xnet_zipwiki.test_getTemplate() fails in mwlib 0.15.3 (with both Python 2.6 and 2.7). It passes in mwlib 0.14.3.
=================================== FAILURES =================================== ______________________ Test_xnet_zipwiki.test_getTemplate ______________________ self = <test_zipwiki.Test_xnet_zipwiki object at 0x3d5c290> def test_getTemplate(self): page = self.wikidb.normalize_and_get_page(u'Infobox Film', 10) > assert isinstance(page.rawtext, unicode) E AttributeError: 'NoneType' object has no attribute 'rawtext' tests/test_zipwiki.py:47: AttributeError
the cause of this bug is that we've switched to fetching expanded articles in mwlib 0.15 in order to easily support the scribunto extension that is currently being deployed on wikipedia.
test_zipwiki.Test_xnet_zipwiki.test_getTemplate() fails in mwlib 0.15.3 (with both Python 2.6 and 2.7). It passes in mwlib 0.14.3.