diff -r da71f1ad1721 -r 68bb0943d192 devtools/testlib.py --- a/devtools/testlib.py Tue Jan 04 16:33:01 2011 +0100 +++ b/devtools/testlib.py Tue Jan 04 16:34:22 2011 +0100 @@ -775,20 +775,21 @@ @nocoverage def _check_html(self, output, view, template='main-template'): """raises an exception if the HTML is invalid""" + output = output.strip() try: validatorclass = self.vid_validators[view.__regid__] except KeyError: if view.content_type in ('text/html', 'application/xhtml+xml'): - if template is None: + if output.startswith(' used in progress widget, unknown in html dtd