summaryrefslogtreecommitdiff
path: root/tests/test_locale.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2018-02-25 21:43:07 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2018-02-25 23:44:38 +0900
commitbc31485b103de947ad659b75b37e1018628ceb73 (patch)
tree1adfffeecea30555003bc4f374a506fff161d813 /tests/test_locale.py
parentb3e7609a804e303a949c60573982452263737fdc (diff)
downloadsphinx-git-bc31485b103de947ad659b75b37e1018628ceb73.tar.gz
Fix i18n: message catalogs were reset on each initialization
Diffstat (limited to 'tests/test_locale.py')
-rw-r--r--tests/test_locale.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/test_locale.py b/tests/test_locale.py
index 93cb9fcbd..9b1921bd6 100644
--- a/tests/test_locale.py
+++ b/tests/test_locale.py
@@ -41,9 +41,8 @@ def test_init(rootdir):
assert _('Hello sphinx') == 'Hello sphinx' # nothing changed here
assert _('Hello reST') == 'Hello reST'
- # load both locale1 and locale2
- locale.init([rootdir / 'test-locale' / 'locale1',
- rootdir / 'test-locale' / 'locale2'], 'en', 'myext')
+ # load locale2 in addition
+ locale.init([rootdir / 'test-locale' / 'locale2'], 'en', 'myext')
_ = locale.get_translation('myext')
assert _('Hello world') == 'HELLO WORLD'
assert _('Hello sphinx') == 'HELLO SPHINX'