summaryrefslogtreecommitdiff
path: root/Lib/test/test_email/test_message.py
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2012-05-29 09:14:44 -0400
committerR David Murray <rdmurray@bitdance.com>2012-05-29 09:14:44 -0400
commit91a7f2c947c0e56c4947aa3b88837eeaea556908 (patch)
tree6de8bc776c9bc57b7cf1eacc5539fc5123cd0833 /Lib/test/test_email/test_message.py
parente3df652d1dc97892d8a10e64f129afc76d85d818 (diff)
downloadcpython-91a7f2c947c0e56c4947aa3b88837eeaea556908.tar.gz
#10839: raise an error on add of duplicate unique headers in new email policies
This feature was supposed to be part of the initial email6 checkin, but it got lost in my big refactoring. In this patch I'm not providing an easy way to turn off the errors, but they only happen when a header is added programmatically, and it is almost never the right thing to do to allow the duplicate to be added. An application that needs to add duplicates of unique headers can create a policy subclass to allow it.
Diffstat (limited to 'Lib/test/test_email/test_message.py')
0 files changed, 0 insertions, 0 deletions