summaryrefslogtreecommitdiff
path: root/tests/test_intl.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2016-12-14 00:12:23 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2016-12-14 00:12:23 +0900
commite645ea59dbeec3b295b6167245a9278624c64a6d (patch)
treefda23ea0f03f4e1b497327a1c16bc4c37f0f6a7f /tests/test_intl.py
parentc2b19243a3f6a39734bdf1244d858ee4f53fbc90 (diff)
parent6bb903058052390be5eedeb4941c4e31c3c75465 (diff)
downloadsphinx-git-e645ea59dbeec3b295b6167245a9278624c64a6d.tar.gz
Merge branch 'stable'
Diffstat (limited to 'tests/test_intl.py')
-rw-r--r--tests/test_intl.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test_intl.py b/tests/test_intl.py
index 68fae6b15..4a517c111 100644
--- a/tests/test_intl.py
+++ b/tests/test_intl.py
@@ -367,6 +367,15 @@ def test_gettext_builder(app, status, warning):
for expect_msg in [m for m in expect if m.id]:
yield assert_in, expect_msg.id, [m.id for m in actual if m.id]
+ # --- don't rebuild by .mo mtime
+ app.builder.build_update()
+ updated = app.env.update(app.config, app.srcdir, app.doctreedir, app)
+ yield assert_equal, len(updated), 0
+
+ (app.srcdir / 'xx' / 'LC_MESSAGES' / 'bom.mo').utime(None)
+ updated = app.env.update(app.config, app.srcdir, app.doctreedir, app)
+ yield assert_equal, len(updated), 0
+
@gen_with_intl_app('html', freshenv=True)
def test_html_builder(app, status, warning):