This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Testing: Push email/policy.py line coverage to 100%.
Type: enhancement Stage: resolved
Components: email, Tests Versions: Python 3.4, Python 3.5
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: barry, python-dev, r.david.murray, zvyn
Priority: normal Keywords: patch

Created on 2014-03-08 13:49 by zvyn, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
policyTest.patch zvyn, 2014-03-08 13:49 review
Messages (3)
msg212929 - (view) Author: Milan Oberkirch (zvyn) * Date: 2014-03-08 13:49
Accorcing to coveragepy there was only one line missing for full line coverage in Lib/email/policy.py so I added an test to cover it.

It checks that the function email.policy.EmailPolicy.header raises an ValueError if the second parameter includes newlines or linefeeds. This is the documented behavior of the function, so testing it seems to be a good idea.
msg212976 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2014-03-09 19:30
New changeset 8f7486263212 by R David Murray in branch 'default':
#20871: improve email policy test coverage.
http://hg.python.org/cpython/rev/8f7486263212
msg212977 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2014-03-09 19:31
Thanks, Milan.
History
Date User Action Args
2022-04-11 14:57:59adminsetgithub: 65070
2014-03-09 19:31:12r.david.murraysetstatus: open -> closed
resolution: fixed
messages: + msg212977

stage: patch review -> resolved
2014-03-09 19:30:34python-devsetnosy: + python-dev
messages: + msg212976
2014-03-08 14:25:00r.david.murraysetnosy: + barry, r.david.murray

components: + email
stage: patch review
2014-03-08 13:49:12zvyncreate