Fixed a bug in TestCase.assertValidHtml().

- Legacy-Id: 9563
This commit is contained in:
Henrik Levkowetz 2015-04-26 20:10:48 +00:00
parent 4ec326a505
commit e3799dca2e

View file

@ -323,7 +323,7 @@ class TestCase(django.test.TestCase):
def assertValidHTML(self, data):
try:
parser.parse(data)
self.parser.parse(data)
except Exception as e:
raise self.failureException(str(e))