File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
src/sphinxcontrib/programoutput/tests Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 66=================
77
88- Reintroduce ANSI output integration through the
9- ``programoutput_use_ansi `` configuration value. When enabled, command
10- output is emitted as an ANSI-aware literal block for processing by the
11- ``erbsland.sphinx.ansi `` extension.
9+ ``programoutput_use_ansi `` configuration value. When enabled,
10+ command output is emitted as an ANSI-aware literal block for
11+ processing by the `erbsland.sphinx.ansi
12+ <https://pypi.org/project/erbsland-sphinx-ansi/> `_ extension. Note
13+ that this extension and thus ANSI support is only available on
14+ Python 3.10 and newer.
1215
1316
14170.18 (2024-12-06)
Original file line number Diff line number Diff line change @@ -487,6 +487,8 @@ def test_use_ansi_missing_extension(self):
487487 .. program-output:: python -c 'print("\\ x1b[31mspam\\ x1b[0m")'""" ,
488488 programoutput_use_ansi = True ,
489489 extensions = ['sphinxcontrib.programoutput' , 'erbsland.sphinx.ansi' ])
490+ @unittest .skipIf (sys .version_info [:2 ] < (3 , 10 ),
491+ "The extension is only available on 3.10+" )
490492 def test_use_ansi_enabled_extension (self ):
491493 with Patch ('sphinxcontrib.programoutput.logger.warning' ) as patch_warning :
492494 doctree = self .doctree
You can’t perform that action at this time.
0 commit comments