Kaydet (Commit) aeb48b9b authored tarafından Claude Paroz's avatar Claude Paroz

Fixed an i18n test with native string

Refs commit 11f307a5.
üst 11f307a5
......@@ -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))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment