Fix various py3 compatibility (refs GH-625)

This commit is contained in:
David Cramer 2015-07-12 11:24:36 -06:00
parent cd8c6dee64
commit 62dc112cee
1 changed files with 1 additions and 1 deletions

View File

@ -715,7 +715,7 @@ class PromiseSerializerTestCase(TestCase):
assert result == expected
def test_real_gettext_lazy(self):
d = {u'lazy_translation': gettext_lazy(u'testing')}
d = {six.text_type('lazy_translation'): gettext_lazy(six.text_type('testing'))}
key = "'lazy_translation'" if six.PY3 else "u'lazy_translation'"
value = "'testing'" if six.PY3 else "u'testing'"
assert transform(d) == {key: value}