For quick checking I don't know how we can reach here with an empty source, so test just checks the function directly. Fix #11758.
3 lines
156 B
ReStructuredText
3 lines
156 B
ReStructuredText
Fixed ``IndexError: string index out of range`` crash in ``if highlighted[-1] == "\n" and source[-1] != "\n"``.
|
|
This bug was introduced in pytest 8.0.0rc1.
|