We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e56b3c7 commit b43fbb1Copy full SHA for b43fbb1
tests/test_nodes.py
@@ -292,7 +292,7 @@ def test_unwrap_tags(parser):
292
@pytest.mark.parametrize(*_PARSERS_PARAMETRIZER)
293
def test_unwrap_empty_tags(parser):
294
html_parser = parser("<div><a href="">Hello</a> <i>world</i>!<i></i><a></a></div>")
295
- html_parser.body.unwrap_tags(['i', 'a'])
+ html_parser.body.unwrap_tags(['i', 'a'], delete_empty=True)
296
assert html_parser.body.html == '<body><div>Hello world!</div></body>'
297
298
0 commit comments