summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2014-09-20 21:44:53 (GMT)
committerR David Murray <rdmurray@bitdance.com>2014-09-20 21:44:53 (GMT)
commit97dfad7856df5d9c681fa74d576a23247cc55a33 (patch)
tree6cf1185cd268ea1d5937bb0f415c21ac002012bf /Lib/test
parent9833fcbca3317bb664252437a3c58d68bfee13a8 (diff)
downloadcpython-97dfad7856df5d9c681fa74d576a23247cc55a33.zip
cpython-97dfad7856df5d9c681fa74d576a23247cc55a33.tar.gz
cpython-97dfad7856df5d9c681fa74d576a23247cc55a33.tar.bz2
#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.py3
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):