Skip to content

Fix test_lexer_classes search path#3016

Merged
birkenfeld merged 1 commit intopygments:masterfrom
yselkowitz:master
Feb 20, 2026
Merged

Fix test_lexer_classes search path#3016
birkenfeld merged 1 commit intopygments:masterfrom
yselkowitz:master

Conversation

@yselkowitz
Copy link
Contributor

"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

"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
Copy link
Contributor

@kurtmckee kurtmckee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I ran these commands and confirmed that the tests continue to pass when run locally:

gh co 3016
tox

@birkenfeld
Copy link
Member

LGTM, thanks.

@birkenfeld birkenfeld merged commit 80a240c into pygments:master Feb 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test_lexer_classes fails with pytest 8.4

3 participants