pypa / readme_renderer

Safely render long_description/README files in Warehouse
Apache License 2.0
158 stars 88 forks source link

Adapt tests to pygments 2.14.0 #272

Closed danigm closed 1 year ago

danigm commented 1 year ago

This patch update the test fixtures to match the output of pygments 2.14.0

miketheman commented 1 year ago

Thanks @danigm ! I'm curious - how did this surface, and do you happen to know what changed in Pygments that caused this change in the output?

danigm commented 1 year ago

Thanks @danigm ! I'm curious - how did this surface, and do you happen to know what changed in Pygments that caused this change in the output?

I found the problem after fixing a similar issue in pytest: https://github.com/pytest-dev/pytest/issues/10630

What I've done to change the output is compare what the test output is expecting and modifying the fixtures until all tests are correct, but you can check the pygments commit and see all the changes in test files, that are very similar to this one.

di commented 1 year ago

Thanks!