summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_email
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2012-03-23 02:40:44 (GMT)
committerR David Murray <rdmurray@bitdance.com>2012-03-23 02:40:44 (GMT)
commit42243c4dcaee5fe6e680d1ea4b1b615dd0d18b10 (patch)
tree51752ab3326f8eff02fadeb46f8f604a92cc6447 /Lib/test/test_email
parent8680bcc5db7c0edc09b09387c145932da34cd889 (diff)
downloadcpython-42243c4dcaee5fe6e680d1ea4b1b615dd0d18b10.zip
cpython-42243c4dcaee5fe6e680d1ea4b1b615dd0d18b10.tar.gz
cpython-42243c4dcaee5fe6e680d1ea4b1b615dd0d18b10.tar.bz2
#14380: Make actual default match docs, fix __init__ order.
Éric pointed out that given that the default was documented as None, someone would reasonably pass that to get the default behavior. In fixing the code to use None, I noticed that the change to _charset was being done after it had already been passed to MIMENonMultipart. The change to the test verifies that the order is now correct.
Diffstat (limited to 'Lib/test/test_email')
-rw-r--r--Lib/test/test_email/test_email.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/test_email/test_email.py b/Lib/test/test_email/test_email.py
index 86aa60c..b07f675 100644
--- a/Lib/test/test_email/test_email.py
+++ b/Lib/test/test_email/test_email.py
@@ -621,15 +621,14 @@ class TestMessageAPI(TestEmailBase):
# Issue 14291
m = MIMEText('É testabc\n')
self.assertEqual(str(m),textwrap.dedent("""\
- MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
+ MIME-Version: 1.0
Content-Transfer-Encoding: base64
w4kgdGVzdGFiYwo=
"""))
-
# Test the email.encoders module
class TestEncoders(unittest.TestCase):