Skip to content

Conversation

@daniell-olaitan
Copy link

Fixes #13503

  • Remove alphabetical sorting from PrettyPrinter dict methods
  • Update assertion util to preserve original dict key order
  • Add comprehensive test for insertion order preservation
  • Update existing tests to match new multiline dict formatting

Dictionary keys are now displayed in insertion order (guaranteed
since Python 3.7) instead of alphabetically, making debug output
more intuitive and matching behavior of print().

  Fixes pytest-dev#13503

  - Remove alphabetical sorting from PrettyPrinter dict methods
  - Update assertion util to preserve original dict key order
  - Add comprehensive test for insertion order preservation
  - Update existing tests to match new multiline dict formatting

  Dictionary keys are now displayed in insertion order (guaranteed
  since Python 3.7) instead of alphabetically, making debug output
  more intuitive and matching behavior of print().
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Failure output order of dictionary keys is alphabetical instead of insertion order

1 participant