summaryrefslogtreecommitdiff
path: root/tests/template_tests/syntax_tests/i18n/test_trans.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/template_tests/syntax_tests/i18n/test_trans.py')
-rw-r--r--tests/template_tests/syntax_tests/i18n/test_trans.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/template_tests/syntax_tests/i18n/test_trans.py b/tests/template_tests/syntax_tests/i18n/test_trans.py
index ba5021a5d5..47a79ff74d 100644
--- a/tests/template_tests/syntax_tests/i18n/test_trans.py
+++ b/tests/template_tests/syntax_tests/i18n/test_trans.py
@@ -1,4 +1,4 @@
-from threading import local
+from asgiref.local import Local
from django.template import Context, Template, TemplateSyntaxError
from django.templatetags.l10n import LocalizeNode
@@ -136,7 +136,7 @@ class TranslationTransTagTests(SimpleTestCase):
@override_settings(LOCALE_PATHS=extended_locale_paths)
def test_template_tags_pgettext(self):
"""{% trans %} takes message contexts into account (#14806)."""
- trans_real._active = local()
+ trans_real._active = Local()
trans_real._translations = {}
with translation.override('de'):
# Nonexistent context...