Removed unneeeded inner import in i18n tests.

This commit is contained in:
Sebastian Sangervasi 2018-02-21 08:38:00 -05:00 committed by Tim Graham
parent 6f0b8c1c9e
commit f7b46f0b58
1 changed files with 3 additions and 3 deletions

View File

@ -30,8 +30,8 @@ from django.utils.translation import (
LANGUAGE_SESSION_KEY, activate, check_for_language, deactivate,
get_language, get_language_bidi, get_language_from_request,
get_language_info, gettext, gettext_lazy, ngettext, ngettext_lazy,
npgettext, npgettext_lazy, pgettext, to_locale, trans_real, ugettext,
ugettext_lazy, ungettext, ungettext_lazy,
npgettext, npgettext_lazy, pgettext, to_locale, trans_null, trans_real,
ugettext, ugettext_lazy, ungettext, ungettext_lazy,
)
from .forms import CompanyForm, I18nForm, SelectDateForm
@ -1327,7 +1327,7 @@ class MiscTests(SimpleTestCase):
self.assertIsNone(g('/de-simple-page/'))
def test_get_language_from_path_null(self):
from django.utils.translation.trans_null import get_language_from_path as g
g = trans_null.get_language_from_path
self.assertIsNone(g('/pl/'))
self.assertIsNone(g('/pl'))
self.assertIsNone(g('/xyz/'))