summaryrefslogtreecommitdiff
path: root/tests/mail/tests.py
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2016-12-29 16:27:49 +0100
committerClaude Paroz <claude@2xlibre.net>2017-01-18 20:18:46 +0100
commit7b2f2e74adb36a4334e83130f6abc2f79d395235 (patch)
tree313387ba6a6f1311b43cf5fb4f2576d2d6c4f805 /tests/mail/tests.py
parentf6acd1d271122d66de8061e75ae26137ddf02658 (diff)
Refs #23919 -- Removed six.<various>_types usage
Thanks Tim Graham and Simon Charette for the reviews.
Diffstat (limited to 'tests/mail/tests.py')
-rw-r--r--tests/mail/tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/mail/tests.py b/tests/mail/tests.py
index cfe2889aa6..7c2cd8342a 100644
--- a/tests/mail/tests.py
+++ b/tests/mail/tests.py
@@ -26,7 +26,7 @@ from django.test import SimpleTestCase, override_settings
from django.test.utils import requires_tz_support
from django.utils._os import upath
from django.utils.encoding import force_bytes, force_text
-from django.utils.six import StringIO, binary_type
+from django.utils.six import StringIO
from django.utils.translation import ugettext_lazy
@@ -40,7 +40,7 @@ class HeadersCheckMixin(object):
with the contents of an email message.
headers: should be a set of (header-name, header-value) tuples.
"""
- if isinstance(message, binary_type):
+ if isinstance(message, bytes):
message = message_from_bytes(message)
msg_headers = set(message.items())
self.assertTrue(headers.issubset(msg_headers), msg='Message is missing '