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 <rep...@bugs.python.org>
<http://bugs.python.org/issue20871>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to