From 08d81b0e1e38b7662d4a8837c1b6a229b7082482 Mon Sep 17 00:00:00 2001 From: Dmitry Shachnev Date: Thu, 3 Mar 2016 17:22:47 +0300 Subject: [PATCH] =?UTF-8?q?Make=20TestCodeHilite=20work=20with=20Pygments?= =?UTF-8?q?=20=E2=89=A5=202.1.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit New versions of Pygments insert blocks in the beginning of the generated output sometimes [1], so we need to remove those blocks before doing the actual checking. [1]: https://bitbucket.org/birkenfeld/pygments-main/commits/164574c13533 --- tests/test_extensions.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_extensions.py b/tests/test_extensions.py index 30b21bb50..6d47e0ebd 100644 --- a/tests/test_extensions.py +++ b/tests/test_extensions.py @@ -209,7 +209,7 @@ def testHighlightLinesWithColon(self): if self.has_pygments: self.assertStartsWith( '
', '')
                 )
             else:
                 self.assertEqual(
@@ -330,7 +330,7 @@ def testFencedCodeWithHighlightLines(self):
         if self.has_pygments:
             self.assertStartsWith(
                 '
', '')
             )
         else:
             self.assertEqual(
@@ -365,7 +365,7 @@ def testFencedLanguageAndHighlightLines(self):
             if self.has_pygments:
                 self.assertStartsWith(
                     '
', '')
                 )
             else:
                 self.assertEqual(