summaryrefslogtreecommitdiff
path: root/bs4/tests/test_htmlparser.py
diff options
context:
space:
mode:
authorLeonard Richardson <leonardr@segfault.org>2023-01-27 13:00:34 -0500
committerLeonard Richardson <leonardr@segfault.org>2023-01-27 13:00:34 -0500
commite66f91c3d898e53a94fdd933ae9f9f62c52eaa2c (patch)
tree947291bb0c4a3c54d3127d3336a6f0afb953606a /bs4/tests/test_htmlparser.py
parent98756d3c97f553f7abf22e3e16a357dac60f0b02 (diff)
Got rid of some more warnings by removing code that's not relevant anymore, now that the minimum supported Python version is 3.6.
Diffstat (limited to 'bs4/tests/test_htmlparser.py')
-rw-r--r--bs4/tests/test_htmlparser.py12
1 files changed, 0 insertions, 12 deletions
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"<div>%s</div>" % 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)
-