gh-63416: Speed up assertEqual on long sequences by jdevries3133 · Pull Request #27434 · python/cpython

Conversation

jdevries3133

@jdevries3133 jdevries3133 changed the title bpo-19217: slow assertEq for moderate length list Speed up assertEqual on long sequences

Jul 29, 2021

@ambv ambv changed the title Speed up assertEqual on long sequences bpo-19217: Speed up assertEqual on long sequences

Jul 29, 2021
* Now, we switch between difflib.ndiff and difflib.unified_diff based on
  input size.
* Threshold is sort of arbitrary, but seems to be working in the limited
  test cases I've written
* The full test suite is passing, with only very minor tweaks to
  existing tests!

ambv

gpshead

…thon into bpo-19217-slow-assertEq

iritkatriel

@AA-Turner AA-Turner changed the title bpo-19217: Speed up assertEqual on long sequences gh-63416: Speed up assertEqual on long sequences

Apr 9, 2025

AA-Turner

Comment on lines +216 to +217