summaryrefslogtreecommitdiff
path: root/tests/mail/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mail/tests.py')
-rw-r--r--tests/mail/tests.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/mail/tests.py b/tests/mail/tests.py
index 8ba4d64423..8019f3ccf8 100644
--- a/tests/mail/tests.py
+++ b/tests/mail/tests.py
@@ -25,7 +25,6 @@ from django.core.mail.backends import console, dummy, filebased, locmem, smtp
from django.core.mail.message import BadHeaderError, sanitize_address
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.translation import ugettext_lazy
@@ -411,7 +410,7 @@ class MailTests(HeadersCheckMixin, SimpleTestCase):
email = EmailMessage('subject', 'body', 'from@example.com', ['to@example.com'])
self.assertEqual(mimetypes.guess_type(basename)[0], real_mimetype)
self.assertEqual(email.attachments, [])
- file_path = os.path.join(os.path.dirname(upath(__file__)), 'attachments', basename)
+ file_path = os.path.join(os.path.dirname(__file__), 'attachments', basename)
email.attach_file(file_path, mimetype=mimetype)
self.assertEqual(len(email.attachments), 1)
self.assertIn(basename, email.attachments[0])