Fix Sphinx build and check example file existence by kdeldycke · Pull Request #2712 · pygments/pygments

@kdeldycke

@kdeldycke changed the title Fix Sphinx build Fix Sphinx build and check example file existence

May 18, 2024

@kdeldycke

@Anteru Anteru added the A-docs

area: changes to documentation/docstrings

label

Jan 5, 2025

yselkowitz added a commit to yselkowitz/pygments that referenced this pull request

Jan 13, 2026
"Test the existence of the example file" (commit afd62f5, pygments#2712) caused
the test to search for the example files relative to the import location of
pygments rather than relative to the tests.  In normal in-tree usage there
may be no practical difference, but in downstream packaging there may be.

Resolves: pygments#2992

birkenfeld pushed a commit that referenced this pull request

Feb 20, 2026
"Test the existence of the example file" (commit afd62f5, #2712) caused
the test to search for the example files relative to the import location of
pygments rather than relative to the tests.  In normal in-tree usage there
may be no practical difference, but in downstream packaging there may be.

Resolves: #2992