Skip to content

Commit

Permalink
Update tests for pygments-2.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mgorny authored and waylan committed Oct 7, 2020
1 parent b8c6a76 commit c2904ea
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
22 changes: 11 additions & 11 deletions tests/test_syntax/extensions/test_code_hilite.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def test_codehilite_linenos_table(self):
def test_codehilite_linenos_inline(self):
if has_pygments:
expected = (
'<div class="codehilite"><pre><span></span><code><span class="lineno">1 </span>plain text\n'
'<div class="codehilite"><pre><span></span><code><span class="linenos">1</span>plain text\n'
'</code></pre></div>'
)
else:
Expand Down Expand Up @@ -259,7 +259,7 @@ def test_codehilite_set_css_class(self):
def test_codehilite_linenostart(self):
if has_pygments:
expected = (
'<div class="codehilite"><pre><span></span><code><span class="lineno">42 </span>plain text\n'
'<div class="codehilite"><pre><span></span><code><span class="linenos">42</span>plain text\n'
'</code></pre></div>'
)
else:
Expand All @@ -274,9 +274,9 @@ def test_codehilite_linenos_hl_lines(self):
if has_pygments:
expected = (
'<div class="codehilite"><pre><span></span><code>'
'<span class="lineno">1 </span><span class="hll">line 1\n'
'</span><span class="lineno">2 </span>line 2\n'
'<span class="lineno">3 </span><span class="hll">line 3\n'
'<span class="linenos">1</span><span class="hll">line 1\n'
'</span><span class="linenos">2</span>line 2\n'
'<span class="linenos">3</span><span class="hll">line 3\n'
'</span></code></pre></div>'
)
else:
Expand All @@ -291,9 +291,9 @@ def test_codehilite_linenos_hl_lines(self):
def test_codehilite_linenos_linenostep(self):
if has_pygments:
expected = (
'<div class="codehilite"><pre><span></span><code><span class="lineno"> </span>line 1\n'
'<span class="lineno">2 </span>line 2\n'
'<span class="lineno"> </span>line 3\n'
'<div class="codehilite"><pre><span></span><code><span class="linenos"> </span>line 1\n'
'<span class="linenos">2</span>line 2\n'
'<span class="linenos"> </span>line 3\n'
'</code></pre></div>'
)
else:
Expand All @@ -308,9 +308,9 @@ def test_codehilite_linenos_linenostep(self):
def test_codehilite_linenos_linenospecial(self):
if has_pygments:
expected = (
'<div class="codehilite"><pre><span></span><code><span class="lineno">1 </span>line 1\n'
'<span class="lineno special">2 </span>line 2\n'
'<span class="lineno">3 </span>line 3\n'
'<div class="codehilite"><pre><span></span><code><span class="linenos">1</span>line 1\n'
'<span class="linenos special">2</span>line 2\n'
'<span class="linenos">3</span>line 3\n'
'</code></pre></div>'
)
else:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_syntax/extensions/test_fenced_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ def testFencedLanguageAttrNoclasses(self):
if self.has_pygments:
expected = (
'<div class="python codehilite" style="background: #f8f8f8">'
'<pre style="line-height: 125%"><span></span><code>'
'<pre style="line-height: 125%; margin: 0;"><span></span><code>'
'<span style="color: #408080; font-style: italic"># Some python code</span>\n'
'</code></pre></div>'
)
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ commands =
# Run tests with pygments installed (override deps only).
deps =
pytidylib
pygments==2.5.2
pygments==2.7.1

[testenv:flake8]
deps = flake8
Expand Down

0 comments on commit c2904ea

Please sign in to comment.