Skip to content

Fix test_lexer_classes search path#3016

Open
yselkowitz wants to merge 1 commit intopygments:masterfrom
yselkowitz:master
Open

Fix test_lexer_classes search path#3016
yselkowitz wants to merge 1 commit intopygments:masterfrom
yselkowitz:master

Conversation

@yselkowitz
Copy link

"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

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

2 participants