#26922: AttributeError in assert_and_parse_html on Python 3.5+
-----------------------------------+--------------------
Reporter: Stranger6667 | Owner: nobody
Type: Bug | Status: new
Component: Testing framework | Version: 1.9
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 1
Easy pickings: 0 | UI/UX: 0
-----------------------------------+--------------------
I got this on Django 1.9 with Python 3.5:
{{{
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)
E AttributeError: 'HTMLParseError' object has no attribute 'msg'
}}}
As I see it happens when input HTML is not valid (I tried with "< div></
div>")
PR: https://github.com/django/django/pull/6943
--
Ticket URL: <https://code.djangoproject.com/ticket/26922>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/055.382ece5664e8d944d1b67757f4e50f02%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.