Mercurial > genshi > genshi-test
diff genshi/tests/output.py @ 932:e53161c2773c
Merge r1140 from py3k:
add support for python 3 to core genshi components (genshi.core, genshi.input and genshi.output):
* default input and output encodings changed from UTF-8 to None (i.e. unicode strings)
* Namespace and QName objects do not call stringrepr in __repr__ in Python 3 since repr() returns a unicode string there.
* track changes to expat parser in Python 3 (mostly it accepts bytes instead of strings)
author | hodgestar |
---|---|
date | Fri, 18 Mar 2011 09:08:12 +0000 |
parents | 37fb3988647a |
children |
line wrap: on
line diff
--- a/genshi/tests/output.py +++ b/genshi/tests/output.py @@ -356,7 +356,7 @@ </div>""", output) def test_html5_doctype(self): - stream = HTML('<html></html>') + stream = HTML(u'<html></html>') output = stream.render(XHTMLSerializer, doctype=DocType.HTML5, encoding=None) self.assertEqual('<!DOCTYPE html>\n<html></html>', output) @@ -427,7 +427,7 @@ </style>""", output) def test_html5_doctype(self): - stream = HTML('<html></html>') + stream = HTML(u'<html></html>') output = stream.render(HTMLSerializer, doctype=DocType.HTML5, encoding=None) self.assertEqual('<!DOCTYPE html>\n<html></html>', output)