From f2a08894fa5d05f4e292d2c45ab7d803d5ad9307 Mon Sep 17 00:00:00 2001 From: winhamwr Date: Wed, 23 Apr 2014 18:37:46 -0400 Subject: [PATCH] Fixed python 3.2 compatibility. --- djrill/tests/test_mandrill_send.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/djrill/tests/test_mandrill_send.py b/djrill/tests/test_mandrill_send.py index 772844c..403584a 100644 --- a/djrill/tests/test_mandrill_send.py +++ b/djrill/tests/test_mandrill_send.py @@ -1,5 +1,7 @@ # -*- coding: utf-8 -*- +from __future__ import unicode_literals + from base64 import b64decode from datetime import date, datetime, timedelta, tzinfo from email.mime.base import MIMEBase @@ -188,7 +190,7 @@ class DjrillBackendTests(DjrillBackendMockAPITestCase): ) # Slight modification from the Django unicode docs: # http://django.readthedocs.org/en/latest/ref/unicode.html#email - msg.attach("Une pièce jointe.html", u'

\u2019

', mimetype='text/html') + msg.attach("Une pièce jointe.html", '

\u2019

', mimetype='text/html') msg.send() data = self.get_api_call_data()