summaryrefslogtreecommitdiff
path: root/tests/logging_tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests/logging_tests')
-rw-r--r--tests/logging_tests/tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/logging_tests/tests.py b/tests/logging_tests/tests.py
index 610bdc1124..e58109fb78 100644
--- a/tests/logging_tests/tests.py
+++ b/tests/logging_tests/tests.py
@@ -467,7 +467,7 @@ class AdminEmailHandlerTest(SimpleTestCase):
msg = mail.outbox[0]
self.assertEqual(msg.subject, "[Django] ERROR: message")
self.assertEqual(len(msg.alternatives), 1)
- body_html = str(msg.alternatives[0][0])
+ body_html = str(msg.alternatives[0].content)
self.assertIn('<div id="traceback">', body_html)
self.assertNotIn("<form", body_html)