tests/test_xpath_selector_unit/fix: Trigger test again. why it doesn't work like my repo

pull/2351/head
Constantin Hong 8 months ago
parent e325e02967
commit 6a2e1cf913

@ -230,8 +230,6 @@ DOM_violation_two_html_root_element = """<!DOCTYPE html>
("//html[2]/body/p[1]", "Browsers parse this part by fixing it but lxml doesn't and returns two root element node"), ("//html[2]/body/p[1]", "Browsers parse this part by fixing it but lxml doesn't and returns two root element node"),
]) ])
def test_trips(html_content, xpath, answer): def test_trips(html_content, xpath, answer):
# In normal situation, DOM's root element node is only one. So when DOM violation happens, Exception occurs. # In normal situation, DOM's root element node is only one. So when DOM violation happens, Exception occurs.
with pytest.raises(Exception): with pytest.raises(Exception):
from lxml import etree, html from lxml import etree, html

Loading…
Cancel
Save