Skip to content

Latest commit

 

History

History
3 lines (2 loc) · 318 Bytes

File metadata and controls

3 lines (2 loc) · 318 Bytes

Assertion failures comparing very large strings, lists, or dataclasses no longer hang for a long time (sometimes minutes) while building the diff.

When the inputs are large enough that :func:`difflib.ndiff` would be pathologically slow, pytest now falls back to a faster line-level diff and notes this in the output.