Skip to content

Commit 4f25425

Browse files
[docs] Add changelog for streaming assertion comparisons (pytest-dev#14523)
1 parent a434343 commit 4f25425

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

changelog/14523.improvement.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
The assertion comparison helpers and the truncator now hand the
2+
explanation between them as an iterator, so the dispatcher only has to
3+
materialise lines the truncator actually keeps. For the typical small
4+
diff this is a no-op; for the rare case where two large collections
5+
fail to compare, peak memory drops by a few percent because the
6+
millions of lines that would have been built and immediately discarded
7+
are no longer built.

0 commit comments

Comments
 (0)