From aeb48b9bc5b78563b1d4d7ed43a33535dd4ff751 Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Sun, 21 Sep 2014 17:28:37 +0200 Subject: [PATCH] Fixed an i18n test with native string Refs commit 11f307a5a8. --- tests/i18n/tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/i18n/tests.py b/tests/i18n/tests.py index 9cf979ab16..a6c8b1dab4 100644 --- a/tests/i18n/tests.py +++ b/tests/i18n/tests.py @@ -27,7 +27,7 @@ from django.utils.six import PY3 from django.utils.translation import (activate, deactivate, get_language, get_language_from_request, get_language_info, to_locale, trans_real, - gettext_lazy, + gettext, gettext_lazy, ugettext, ugettext_lazy, ngettext_lazy, ungettext_lazy, @@ -351,7 +351,7 @@ class TranslationTests(TestCase): """ with translation.override('de'): self.assertEqual("", ugettext("")) - self.assertEqual(b"", gettext(b"")) + self.assertEqual(str(""), gettext(str(""))) s = mark_safe("") self.assertEqual(s, ugettext(s))