pytest icon indicating copy to clipboard operation
pytest copied to clipboard

Display output failure message in insertion order of dictionary

Open ritvi-alagusankar opened this issue 5 months ago • 5 comments

Closes #13503. This PR updates the failure message formatting to respect the original order of dictionary keys, instead of sorting them alphabetically.

Changes made:

Common items shared by both dictionaries are now shown in the order they appear in the left dictionary. Items unique to each dictionary are displayed in the order they originally appear in their respective dictionaries.

ritvi-alagusankar avatar Jul 05 '25 09:07 ritvi-alagusankar