diff options
Diffstat (limited to 'tests/test_intl.py')
-rw-r--r-- | tests/test_intl.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/test_intl.py b/tests/test_intl.py index 0d9b189ca..f03c771c9 100644 --- a/tests/test_intl.py +++ b/tests/test_intl.py @@ -21,7 +21,8 @@ from six import string_types import pytest from util import ( - path, assert_re_search, assert_not_re_search, assert_startswith, assert_node, etree_parse + path, etree_parse, strip_escseq, + assert_re_search, assert_not_re_search, assert_startswith, assert_node ) @@ -496,7 +497,7 @@ def test_gettext_buildr_ignores_only_directive(app): def test_gettext_dont_rebuild_mo(make_app, app_params, build_mo): # --- don't rebuild by .mo mtime def get_number_of_update_targets(app_): - updated = app_.env.update(app_.config, app_.srcdir, app_.doctreedir, app_) + updated = app_.env.update(app_.config, app_.srcdir, app_.doctreedir) return len(updated) # setup new directory @@ -679,12 +680,12 @@ def test_html_rebuild_mo(app): app.build() # --- rebuild by .mo mtime app.builder.build_update() - updated = app.env.update(app.config, app.srcdir, app.doctreedir, app) + updated = app.env.update(app.config, app.srcdir, app.doctreedir) assert len(updated) == 0 mtime = (app.srcdir / 'xx' / 'LC_MESSAGES' / 'bom.mo').stat().st_mtime (app.srcdir / 'xx' / 'LC_MESSAGES' / 'bom.mo').utime((mtime + 5, mtime + 5)) - updated = app.env.update(app.config, app.srcdir, app.doctreedir, app) + updated = app.env.update(app.config, app.srcdir, app.doctreedir) assert len(updated) == 1 @@ -1170,4 +1171,4 @@ def test_image_glob_intl_using_figure_language_filename(app): def getwarning(warnings): - return warnings.getvalue().replace(os.sep, '/') + return strip_escseq(warnings.getvalue().replace(os.sep, '/')) |