From e66f91c3d898e53a94fdd933ae9f9f62c52eaa2c Mon Sep 17 00:00:00 2001 From: Leonard Richardson Date: Fri, 27 Jan 2023 13:00:34 -0500 Subject: Got rid of some more warnings by removing code that's not relevant anymore, now that the minimum supported Python version is 3.6. --- bs4/tests/test_htmlparser.py | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'bs4/tests/test_htmlparser.py') diff --git a/bs4/tests/test_htmlparser.py b/bs4/tests/test_htmlparser.py index bfcfa1f..470d393 100644 --- a/bs4/tests/test_htmlparser.py +++ b/bs4/tests/test_htmlparser.py @@ -122,15 +122,3 @@ class TestHTMLParserTreeBuilder(SoupTest, HTMLTreeBuilderSmokeTest): with_element = div.encode(formatter="html") expect = b"
%s
" % output_element assert with_element == expect - -class TestHTMLParserSubclass(SoupTest): - def test_error(self): - """Verify that our HTMLParser subclass implements error() in a way - that doesn't cause a crash. - """ - parser = BeautifulSoupHTMLParser() - with warnings.catch_warnings(record=True) as warns: - parser.error("don't crash") - [warning] = warns - assert "don't crash" == str(warning.message) - -- cgit v1.2.3