Fixed a bug in TestCase.assertValidHtml().
- Legacy-Id: 9563
This commit is contained in:
parent
4ec326a505
commit
e3799dca2e
|
@ -323,7 +323,7 @@ class TestCase(django.test.TestCase):
|
||||||
|
|
||||||
def assertValidHTML(self, data):
|
def assertValidHTML(self, data):
|
||||||
try:
|
try:
|
||||||
parser.parse(data)
|
self.parser.parse(data)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
raise self.failureException(str(e))
|
raise self.failureException(str(e))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue