summaryrefslogtreecommitdiff
path: root/django/test
diff options
context:
space:
mode:
authorDmitry Dygalo <dadygalo@gmail.com>2016-07-20 16:12:13 +0200
committerTim Graham <timograham@gmail.com>2016-07-21 14:01:23 -0400
commitd7a097265b1842843a73ce0da36ef98bacac8a3e (patch)
tree9bdb4e1c3ec4d26d8eb0cc8090a9286da460a57e /django/test
parent915786785f6f4439267a513d359c501eddd88266 (diff)
Fixed #26922 -- Fixed SimpleTestCase.assertHTMLEqual() crash on Python 3.5+.
Diffstat (limited to 'django/test')
-rw-r--r--django/test/testcases.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/test/testcases.py b/django/test/testcases.py
index 97e2b86546..eb3d63f917 100644
--- a/django/test/testcases.py
+++ b/django/test/testcases.py
@@ -64,7 +64,7 @@ def assert_and_parse_html(self, html, user_msg, msg):
try:
dom = parse_html(html)
except HTMLParseError as e:
- standardMsg = '%s\n%s' % (msg, e.msg)
+ standardMsg = '%s\n%s' % (msg, e)
self.fail(self._formatMessage(user_msg, standardMsg))
return dom