Landing: 050c632327e4
Project / Subsystem
gcc / testsuite
Date
2026-04-07
Author
Torbjörn SVENSSON
Commit
050c632327e4c499c66d4d258763a7b846a53134
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- testsuite
- patch_id
- —
- commit_hash
- 050c632327e4c499c66d4d258763a7b846a53134
- source_type
- github
- headline
- Testsuite gets a predictable ordered array for comparison
- tldr
- This patch fixes a `TypeError` in the GCC testsuite by ensuring arrays used for comparison have a predictable order without attempting to hash dictionaries.
- author
- Torbjörn SVENSSON
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • testsuite
- • python
- • bugfix
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-04-07T00:00:00.000Z
The GCC testsuite’s test-p1689.py script previously encountered a TypeError when attempting to compare arrays that contained unhashable dictionary objects. This occurred because Python’s set() function, used for comparison, requires its elements to be hashable. To resolve this, the patch now converts dictionary elements to string representations before sorting the array and then back to objects, allowing for proper comparison without type errors.