Mercurial > cpython-lru_cache-weakref
diff Lib/test/test_htmlparser.py @ 77630:8dd2f5754b2f
#15114: the strict mode of HTMLParser and the HTMLParseError exception are deprecated now that the parser is able to parse invalid markup.
| author | Ezio Melotti <ezio.melotti@gmail.com> |
|---|---|
| date | Sat, 23 Jun 2012 15:27:51 +0200 |
| parents | ba4baaddac8d |
| children | 0d53703b1a99 |
line wrap: on
line diff
--- a/Lib/test/test_htmlparser.py Sat Jun 23 14:45:21 2012 +0200 +++ b/Lib/test/test_htmlparser.py Sat Jun 23 15:27:51 2012 +0200 @@ -102,7 +102,8 @@ class HTMLParserStrictTestCase(TestCaseBase): def get_collector(self): - return EventCollector(strict=True) + with support.check_warnings(("", DeprecationWarning), quite=False): + return EventCollector(strict=True) def test_processing_instruction_only(self): self._run_check("<?processing instruction>", [ @@ -594,7 +595,8 @@ class AttributesStrictTestCase(TestCaseBase): def get_collector(self): - return EventCollector(strict=True) + with support.check_warnings(("", DeprecationWarning), quite=False): + return EventCollector(strict=True) def test_attr_syntax(self): output = [
