summaryrefslogtreecommitdiff
path: root/tests/utils_tests/test_text.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/utils_tests/test_text.py')
-rw-r--r--tests/utils_tests/test_text.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/utils_tests/test_text.py b/tests/utils_tests/test_text.py
index 22695277a4..a869ced774 100644
--- a/tests/utils_tests/test_text.py
+++ b/tests/utils_tests/test_text.py
@@ -4,7 +4,7 @@ from django.test import SimpleTestCase
from django.utils import text
from django.utils.functional import lazystr
from django.utils.text import format_lazy
-from django.utils.translation import override, ugettext_lazy
+from django.utils.translation import gettext_lazy, override
IS_WIDE_BUILD = (len('\U0001F4A9') == 1)
@@ -235,7 +235,7 @@ class TestUtilsText(SimpleTestCase):
# The format string can be lazy. (string comes from contrib.admin)
s = format_lazy(
- ugettext_lazy("Added {name} \"{object}\"."),
+ gettext_lazy("Added {name} \"{object}\"."),
name='article', object='My first try',
)
with override('fr'):