[issue20871] Testing: Push email/policy.py line coverage to 100%.

Milan Oberkirch report at bugs.python.org
Sat Mar 8 14:49:12 CET 2014


New submission from Milan Oberkirch:

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.

----------
components: Tests
files: policyTest.patch
keywords: patch
messages: 212929
nosy: zvyn
priority: normal
severity: normal
status: open
title: Testing: Push email/policy.py line coverage to 100%.
type: enhancement
versions: Python 3.4, Python 3.5
Added file: http://bugs.python.org/file34306/policyTest.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20871>
_______________________________________


More information about the Python-bugs-list mailing list