#21093: regressiontests.mail.tests.MailTests.test_dont_base64_encode() fails 
with
Python >=3.3.3
-----------------------------------+------------------------------------
     Reporter:  Arfrever           |                    Owner:  nobody
         Type:  Bug                |                   Status:  closed
    Component:  Testing framework  |                  Version:  master
     Severity:  Release blocker    |               Resolution:  fixed
     Keywords:                     |             Triage Stage:  Accepted
    Has patch:  0                  |      Needs documentation:  0
  Needs tests:  0                  |  Patch needs improvement:  0
Easy pickings:  0                  |                    UI/UX:  0
-----------------------------------+------------------------------------

Comment (by cainmatt@…):

 regarding message.py:

 I think that rather than re-encoding the message in SafeMimeText you
 should set the encoding globally for python using:

 Charset.add_charset('utf-8', Charset.SHORTEST, None, 'utf-8')

 Note:

 u1 = Charset.Charset('utf-8')
 u1.body_encoding = None
 u2 = Charset.Charset('utf-8')

 u2.body_encoding != u1.body_encoding

-- 
Ticket URL: <https://code.djangoproject.com/ticket/21093#comment:10>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.00c4cf9c4ba87d76112ead2a4357d578%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to