SF.net SVN: docutils:[10022] trunk/docutils/test

aa-turner--- via Docutils-checkins <[email protected]> Fri, 07 Mar 2025 23:05:08 +0000
Newsgroups gmane.text.docutils.cvs
Message-ID <[email protected]>
Revision: 10022
          http://sourceforge.net/p/docutils/code/10022
Author:   aa-turner
Date:     2025-03-07 23:05:06 +0000 (Fri, 07 Mar 2025)
Log Message:
-----------
fixup! Support Pygments 2.19 in tests

Modified Paths:
--------------
    trunk/docutils/test/test_parsers/test_rst/test_directives/test_code.py
    trunk/docutils/test/test_parsers/test_rst/test_directives/test_code_long.py
    trunk/docutils/test/test_writers/test_html4css1.py
    trunk/docutils/test/test_writers/test_html5_polyglot.py

Modified: trunk/docutils/test/test_parsers/test_rst/test_directives/test_code.py
===================================================================
--- trunk/docutils/test/test_parsers/test_rst/test_directives/test_code.py	2025-03-07 22:59:21 UTC (rev 10021)
+++ trunk/docutils/test/test_parsers/test_rst/test_directives/test_code.py	2025-03-07 23:05:06 UTC (rev 10022)
@@ -9,7 +9,6 @@
 """
 
 from pathlib import Path
-import re
 import sys
 import unittest
 

Modified: trunk/docutils/test/test_parsers/test_rst/test_directives/test_code_long.py
===================================================================
--- trunk/docutils/test/test_parsers/test_rst/test_directives/test_code_long.py	2025-03-07 22:59:21 UTC (rev 10021)
+++ trunk/docutils/test/test_parsers/test_rst/test_directives/test_code_long.py	2025-03-07 23:05:06 UTC (rev 10022)
@@ -24,6 +24,7 @@
 from test.test_parsers.test_rst.test_directives.test_code \
     import PYGMENTS_2_14_PLUS, def_ws
 
+
 @unittest.skipUnless(with_pygments, 'needs Pygments')
 class ParserTestCase(unittest.TestCase):
     def test_parser(self):

Modified: trunk/docutils/test/test_writers/test_html4css1.py
===================================================================
--- trunk/docutils/test/test_writers/test_html4css1.py	2025-03-07 22:59:21 UTC (rev 10021)
+++ trunk/docutils/test/test_writers/test_html4css1.py	2025-03-07 23:05:06 UTC (rev 10022)
@@ -26,6 +26,7 @@
 
 if with_pygments:
     import pygments
+
     if tuple(map(int, pygments.__version__.split('.')[:2])) >= (2, 14):
         # pygments output changed in version 2.14
         with_pygments = False

Modified: trunk/docutils/test/test_writers/test_html5_polyglot.py
===================================================================
--- trunk/docutils/test/test_writers/test_html5_polyglot.py	2025-03-07 22:59:21 UTC (rev 10021)
+++ trunk/docutils/test/test_writers/test_html5_polyglot.py	2025-03-07 23:05:06 UTC (rev 10022)
@@ -27,6 +27,7 @@
 
 if with_pygments:
     import pygments
+
     if tuple(map(int, pygments.__version__.split('.')[:2])) >= (2, 14):
         # pygments output changed in version 2.14
         with_pygments = False

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.