From c2904eac1a6daf8a3aaef6af0791b101e1971544 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
Date: Wed, 7 Oct 2020 15:01:07 +0200
Subject: [PATCH] Update tests for pygments-2.7.1

Closes #1030
---
 .../extensions/test_code_hilite.py            | 22 +++++++++----------
 .../extensions/test_fenced_code.py            |  2 +-
 tox.ini                                       |  2 +-
 3 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/tests/test_syntax/extensions/test_code_hilite.py b/tests/test_syntax/extensions/test_code_hilite.py
index 8d5512d..3e36ae5 100644
--- a/tests/test_syntax/extensions/test_code_hilite.py
+++ b/tests/test_syntax/extensions/test_code_hilite.py
@@ -205,7 +205,7 @@ class TestCodeHiliteClass(TestCase):
     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:
@@ -259,7 +259,7 @@ class TestCodeHiliteClass(TestCase):
     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:
@@ -274,9 +274,9 @@ class TestCodeHiliteClass(TestCase):
         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:
@@ -291,9 +291,9 @@ class TestCodeHiliteClass(TestCase):
     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:
@@ -308,9 +308,9 @@ class TestCodeHiliteClass(TestCase):
     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:
diff --git a/tests/test_syntax/extensions/test_fenced_code.py b/tests/test_syntax/extensions/test_fenced_code.py
index e5de0b7..8fa75f7 100644
--- a/tests/test_syntax/extensions/test_fenced_code.py
+++ b/tests/test_syntax/extensions/test_fenced_code.py
@@ -629,7 +629,7 @@ class TestFencedCode(TestCase):
         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>'
             )
-- 
2.28.0

