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

Failure under python 2.7 #6

Open
fabianp opened this issue Apr 24, 2014 · 2 comments
Open

Failure under python 2.7 #6

fabianp opened this issue Apr 24, 2014 · 2 comments

Comments

@fabianp
Copy link

fabianp commented Apr 24, 2014

I came to this error through pelican but I can reproduce it by the test suite:

 $ nosetests                                                                               
ERROR: test_001_string_results (tests_feedgenerator.test_feedgenerator.TestFeedGenerator)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/fabian/dev/feedgenerator-py3k/tests_feedgenerator/test_feedgenerator.py", line 69, in test_001_string_results
    result = feed.writeString(ENCODING)
  File "/Users/fabian/dev/feedgenerator-py3k/feedgenerator/django/utils/feedgenerator.py", line 188, in writeString
    self.write(s, encoding)
  File "/Users/fabian/dev/feedgenerator-py3k/feedgenerator/django/utils/feedgenerator.py", line 215, in write
    handler.startElement("rss", self.rss_attributes())
  File "/Users/fabian/dev/feedgenerator-py3k/feedgenerator/django/utils/xmlutils.py", line 19, in startElement
    self._write('<' + name)
AttributeError: SimplerXMLGenerator instance has no attribute '_write'

----------------------------------------------------------------------
Ran 5 tests in 0.052s

FAILED (errors=1)
FAIL
@fabianp
Copy link
Author

fabianp commented Apr 24, 2014

I note that the offending function has been removed from django: https://github.com/django/django/blob/master/django/utils/xmlutils.py

@dmdm
Copy link
Owner

dmdm commented Apr 29, 2014

Alas, I'm really short on spare time these days -- if you could provide a PR with a fix, that would be much appreciated. Thanks.

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