diff options
author | R David Murray <rdmurray@bitdance.com> | 2014-09-20 21:49:48 (GMT) |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2014-09-20 21:49:48 (GMT) |
commit | 1de0ac05f3467faad2e0a0d6d08f86c06bf43b1b (patch) | |
tree | 158dacfd556f2eb920ef34ffc3623e337b32abcf /Lib/test | |
parent | e22735036bd749dea3eba340cb077b82d7b35b86 (diff) | |
parent | 97dfad7856df5d9c681fa74d576a23247cc55a33 (diff) | |
download | cpython-1de0ac05f3467faad2e0a0d6d08f86c06bf43b1b.zip cpython-1de0ac05f3467faad2e0a0d6d08f86c06bf43b1b.tar.gz cpython-1de0ac05f3467faad2e0a0d6d08f86c06bf43b1b.tar.bz2 |
Merge: #21079: is_attachment now looks only at the value, ignoring parameters.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_email/test_message.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_email/test_message.py b/Lib/test/test_email/test_message.py index c761c62..51ddf36 100644 --- a/Lib/test/test_email/test_message.py +++ b/Lib/test/test_email/test_message.py @@ -729,7 +729,8 @@ class TestEmailMessageBase: self.assertTrue(m.is_attachment) m.replace_header('Content-Disposition', 'AtTachMent') self.assertTrue(m.is_attachment) - + m.set_param('filename', 'abc.png', 'Content-Disposition') + self.assertTrue(m.is_attachment) class TestEmailMessage(TestEmailMessageBase, TestEmailBase): |