cpython
cpython copied to clipboard
gh-93121: change _sample_headers from a map to list + tuples to allow duplicates
Before:
https://github.com/python/cpython/blob/b2694ab46997746eae7e913738623b39f6334473/Lib/test/test_mailbox.py#L34-L35
https://github.com/python/cpython/blob/b2694ab46997746eae7e913738623b39f6334473/Lib/test/test_mailbox.py#L2267-L2290
Since _sample_headers is a map with duplicate keys (ex: Received), not all keys are tested.
After:
Changed _sample_headers to a list of tuples so all keys are tested
- Issue: gh-93121
Most changes to Python require a NEWS entry.
Please add it using the blurb_it web app or the blurb command-line tool.
Most changes to Python require a NEWS entry.
Please add it using the blurb_it web app or the blurb command-line tool.
FWIW, "map" and "mapping" are two different things.
Most changes to Python require a NEWS entry.
Please add it using the blurb_it web app or the blurb command-line tool.