diff options
| author | shimizukawa <shimizukawa@gmail.com> | 2013-02-04 23:06:44 +0900 |
|---|---|---|
| committer | shimizukawa <shimizukawa@gmail.com> | 2013-02-04 23:06:44 +0900 |
| commit | edde8efbfe2f5b45ff767b395d846fe610c0ba95 (patch) | |
| tree | 0c08163bb32c30369f448cf7eeea9b1eb2874836 /tests | |
| parent | 557979af85df90414188e2149686ea46e9102e5a (diff) | |
| download | sphinx-edde8efbfe2f5b45ff767b395d846fe610c0ba95.tar.gz | |
remove unusable 'SEVERE: Duplicate ID' message for footnote that the translation node has been recognized as a duplicate.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_intl.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/test_intl.py b/tests/test_intl.py index 9336bead..0cb43202 100644 --- a/tests/test_intl.py +++ b/tests/test_intl.py @@ -114,9 +114,10 @@ def test_i18n_footnote_break_refid(app): # expect no error by build -@with_intl_app(buildername='text', cleanenv=True) +@with_intl_app(buildername='text', warning=warnfile) def test_i18n_footnote_regression(app): """regression test for fix #955""" + app.builddir.rmtree(True) app.builder.build(['footnote']) result = (app.outdir / 'footnote.txt').text(encoding='utf-8') expect = (u"\nI18N WITH FOOTNOTE" @@ -127,6 +128,10 @@ def test_i18n_footnote_regression(app): u"\n[100] THIS IS A NUMBERED FOOTNOTE.\n") assert result == expect + warnings = warnfile.getvalue().replace(os.sep, '/') + warning_expr = u'.*/footnote.txt:\\d*: SEVERE: Duplicate ID: ".*".\n' + assert not re.search(warning_expr, warnings) + @with_intl_app(buildername='html', cleanenv=True) def test_i18n_footnote_backlink(app): |
