mirror of
https://github.com/coddingtonbear/django-mailbox.git
synced 2026-07-09 22:38:19 +02:00
Update base.py
This commit is contained in:
parent
22c2f01e90
commit
0a532bbf53
1 changed files with 1 additions and 1 deletions
|
|
@ -59,7 +59,7 @@ class EmailMessageTestCase(TestCase):
|
||||||
time.sleep(5)
|
time.sleep(5)
|
||||||
|
|
||||||
def _get_email_object(self, name):
|
def _get_email_object(self, name):
|
||||||
with open(join(dirname(__file__), 'messages', name), 'rb') as f:
|
with open(join(dirname(__file__), 'messages', name), 'r') as f:
|
||||||
if six.PY3:
|
if six.PY3:
|
||||||
return email.message_from_binary_file(f)
|
return email.message_from_binary_file(f)
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue