Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sphinx-doc/sphinx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakayuki Shimizukawa <shimizukawa@gmail.com>2013-01-06 11:15:49 +0400
committerTakayuki Shimizukawa <shimizukawa@gmail.com>2013-01-06 11:15:49 +0400
commit9b9c69042e0981cd5798a5a26ec5fc2725275a6c (patch)
tree30c2829df691ca31eee72e945cc13f0f94e461d4 /tests/test_build_gettext.py
parent64a4c13d63681662456d62535b2d9491cf139eac (diff)
Divide test_intl target source files for speed-up.
Diffstat (limited to 'tests/test_build_gettext.py')
-rw-r--r--tests/test_build_gettext.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/test_build_gettext.py b/tests/test_build_gettext.py
index dcbff4849..d98cde86c 100644
--- a/tests/test_build_gettext.py
+++ b/tests/test_build_gettext.py
@@ -20,6 +20,7 @@ from util import SkipTest
def teardown_module():
(test_root / '_build').rmtree(True)
+ (test_roots / 'test-intl' / '_build').rmtree(True),
@with_app(buildername='gettext')
@@ -83,10 +84,12 @@ def test_gettext(app):
@with_app(buildername='gettext',
+ srcdir=(test_roots / 'test-intl'),
+ doctreedir=(test_roots / 'test-intl' / '_build' / 'doctree'),
confoverrides={'gettext_compact': False})
def test_gettext_index_entries(app):
# regression test for #976
- app.builder.build(['i18n/index_entries'])
+ app.builder.build(['index_entries'])
_msgid_getter = re.compile(r'msgid "(.*)"').search
def msgid_getter(msgid):
@@ -95,7 +98,7 @@ def test_gettext_index_entries(app):
return m.groups()[0]
return None
- pot = (app.outdir / 'i18n' / 'index_entries.pot').text(encoding='utf-8')
+ pot = (app.outdir / 'index_entries.pot').text(encoding='utf-8')
msgids = filter(None, map(msgid_getter, pot.splitlines()))
expected_msgids = [