From 62dc112cee09a9efa21b2f53ff1cc281c71256ab Mon Sep 17 00:00:00 2001 From: David Cramer Date: Sun, 12 Jul 2015 11:24:36 -0600 Subject: [PATCH] Fix various py3 compatibility (refs GH-625) --- tests/contrib/django/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/contrib/django/tests.py b/tests/contrib/django/tests.py index 0d3703c5..98a93cd8 100644 --- a/tests/contrib/django/tests.py +++ b/tests/contrib/django/tests.py @@ -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}