New submission from Vajrasky Kok:
In Lib/test/test_email/test_email.py, line 389, there is a unit test function:
def test_del_param_on_nonexistent_header(self):
msg = Message()
msg.del_param('filename', 'content-disposition')
There is no assertion here, unlike other unit test functions, such as:
def test_del_param_on_other_header(self):
msg = Message()
msg.add_header('Content-Disposition', 'attachment', filename='bud.gif')
msg.del_param('filename', 'content-disposition')
self.assertEqual(msg['content-disposition'], 'attachment')
----------
components: Tests
files: add_assert_equal_on_test_del_param_on_nonexistent_header.txt
messages: 193356
nosy: r.david.murray, vajrasky
priority: normal
severity: normal
status: open
title: No assertion in test_del_param_on_nonexistent_header function
versions: Python 3.4
Added file:
http://bugs.python.org/file30977/add_assert_equal_on_test_del_param_on_nonexistent_header.txt
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue18503>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com