X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=tests%2Ftest_translations.py;h=ed451229808f626700e799a6421c08333a86d589;hb=2d61599520048f70cdf07fceb07d0fd509d548fc;hp=313d6d60542209c404bdbfb3c9206fdf23996520;hpb=0637a5e2ea44edb768f70525695a89da3ecca8e2;p=m_librarian.git diff --git a/tests/test_translations.py b/tests/test_translations.py index 313d6d6..ed45122 100644 --- a/tests/test_translations.py +++ b/tests/test_translations.py @@ -1,14 +1,8 @@ # coding: utf-8 -import os -save_locale = os.environ.get('LC_CTYPE') -os.environ['LC_CTYPE'] = 'ru_RU' - -from m_librarian.translations import translations # noqa - -if save_locale: - os.environ['LC_CTYPE'] = save_locale +from m_librarian.translations import get_translations +translations = get_translations('ru') _ = getattr(translations, 'ugettext', None) or translations.gettext