diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-02-19 22:39:14 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-02-19 23:20:56 +0900 |
commit | f7027049b1cc02797ee063ef63c6b353a1ce31ca (patch) | |
tree | 4bf98a1ea0f84873593f638c84c27cfcdcd961e1 /tests/test_ext_math.py | |
parent | bce5fe76b5c846d95014bf795b550dd5d1a655f3 (diff) | |
download | sphinx-git-f7027049b1cc02797ee063ef63c6b353a1ce31ca.tar.gz |
Fix flake8 violations
Diffstat (limited to 'tests/test_ext_math.py')
-rw-r--r-- | tests/test_ext_math.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/test_ext_math.py b/tests/test_ext_math.py index 1cdf4d637..755a9e955 100644 --- a/tests/test_ext_math.py +++ b/tests/test_ext_math.py @@ -9,9 +9,8 @@ :license: BSD, see LICENSE for details. """ -import os -import re import errno +import re import subprocess import pytest @@ -37,10 +36,12 @@ def test_jsmath(app, status, warning): content = (app.outdir / 'math.html').text() assert '<div class="math notranslate">\na^2 + b^2 = c^2</div>' in content - assert '<div class="math notranslate">\n\\begin{split}a + 1 < b\\end{split}</div>' in content + assert ('<div class="math notranslate">\n\\begin{split}a + 1 < b\\end{split}</div>' + in content) 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) + 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" ' u'title="Permalink to this equation">\xb6</a></span>' u'<div class="math notranslate" id="equation-math-0">\n' |