test_mailbox
: Duplicate keys in _sample_headers
cause _check_sample
to only test one value
#93121
Labels
test_mailbox
: Duplicate keys in _sample_headers
cause _check_sample
to only test one value
#93121
Bug report
A sample of mail headers is used in tests here:
cpython/Lib/test/test_mailbox.py
Lines 34 to 35 in b2694ab
However,
_sample_headers
is defined as a dict, despite having duplicate keys, such asReceived
:cpython/Lib/test/test_mailbox.py
Lines 2267 to 2290 in b2694ab
causing those tests to only check one of those values. It should probably be a list of tuples instead? If this is indeed unintended, I'd be happy to open a PR.
cc @warsaw
(Found by running
flake8
overLib/
out of curiosity, see #93010 (comment))Your environment
The text was updated successfully, but these errors were encountered: