Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_zipwiki.Test_xnet_zipwiki.test_getTemplate() fails #30

Open
Arfrever opened this issue Mar 13, 2013 · 1 comment
Open

test_zipwiki.Test_xnet_zipwiki.test_getTemplate() fails #30

Arfrever opened this issue Mar 13, 2013 · 1 comment

Comments

@Arfrever
Copy link

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
@schmir
Copy link
Contributor

schmir commented Mar 13, 2013

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants