diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-01-20 02:22:35 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-01-20 02:22:35 +0900 |
commit | 8b8c3d173637fa8c69fd30518a4a79e7260f17ae (patch) | |
tree | 4e1b70c40d7e00106765f7f4253877d0ab773108 /tests/test_ext_math.py | |
parent | 80a4b272addaaf76c9e04d80080543ca33503bff (diff) | |
parent | 2b89f72d54acf1503ac4f9a79e22daf9882d6b2d (diff) | |
download | sphinx-git-8b8c3d173637fa8c69fd30518a4a79e7260f17ae.tar.gz |
Merge branch 'stable' into 1.7-release
Diffstat (limited to 'tests/test_ext_math.py')
-rw-r--r-- | tests/test_ext_math.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_ext_math.py b/tests/test_ext_math.py index ad12d4091..68a121341 100644 --- a/tests/test_ext_math.py +++ b/tests/test_ext_math.py @@ -40,9 +40,9 @@ def test_jsmath(app, status, warning): assert (u'<span class="eqno">(1)<a class="headerlink" href="#equation-foo" ' u'title="Permalink to this equation">\xb6</a></span>' u'<div class="math notranslate" id="equation-foo">\ne^{i\\pi} = 1</div>' in content) - assert (u'<span class="eqno">(2)<a class="headerlink" href="#equation-math:0" ' + assert (u'<span class="eqno">(2)<a class="headerlink" href="#equation-math-0" ' u'title="Permalink to this equation">\xb6</a></span>' - u'<div class="math notranslate" id="equation-math:0">\n' + u'<div class="math notranslate" id="equation-math-0">\n' u'e^{ix} = \\cos x + i\\sin x</div>' in content) assert '<div class="math notranslate">\nn \\in \\mathbb N</div>' in content assert '<div class="math notranslate">\na + 1 < b</div>' in content @@ -102,7 +102,7 @@ def test_math_number_all_mathjax(app, status, warning): app.builder.build_all() content = (app.outdir / 'index.html').text() - html = (r'<div class="math notranslate" id="equation-index:0">\s*' + html = (r'<div class="math notranslate" id="equation-index-0">\s*' r'<span class="eqno">\(1\)<a .*>\xb6</a></span>\\\[a\^2\+b\^2=c\^2\\\]</div>') assert re.search(html, content, re.S) |