========================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================= test session starts ==========================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================
platform linux -- Python 3.10.12, pytest-9.0.3, pluggy-1.6.0
rootdir: /workspace/parsel
configfile: pytest.ini
plugins: metadata-3.1.1, anyio-4.13.0, cov-7.1.0, json-report-1.5.0
collected 208 items

tests/test_selector.py ..FF.....F....F...F..........FFFFFFFs.F...F.FFFFFFFF.F.FFFFFFF.F.FFF.F......FF..FF.....F....F...F..........FFFFFFFs.F...F.FFFFFFFF.F...FFFFF.F.FFF.F......FF                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              [ 75%]
tests/test_selector_csstranslator.py .............FFF.FFFF.F                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     [ 86%]
tests/test_selector_jmespath.py FFF.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             [ 87%]
tests/test_utils.py ...............                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              [ 95%]
tests/test_xml_attacks.py F                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      [ 95%]
tests/test_xpathfuncs.py ...FFFFF.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               [100%]

=============================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================== FAILURES ===============================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================
______________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________ SelectorTestCase.test_bool ______________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________

self = <test_selector.SelectorTestCase testMethod=test_bool>

    def test_bool(self) -> None:
        text = '<a href="" >false</a><a href="nonempty">true</a>'
        hs = self.sscls(text=text, type="html")
>       falsish = hs.xpath("//a/@href")[0]

tests/test_selector.py:401:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
parsel/selector.py:332: in xpath
    return self.selectorlist_cls([self.__class__(root=x, type=self.type, namespaces=self.namespaces, _expr=query, huge_tree=self._huge_tree) for x in result])
parsel/selector.py:332: in <listcomp>
    return self.selectorlist_cls([self.__class__(root=x, type=self.type, namespaces=self.namespaces, _expr=query, huge_tree=self._huge_tree) for x in result])
parsel/selector.py:272: in __init__
    self.type = _get_root_type(root, input_type=type)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

root = '', input_type = 'html'

    def _get_root_type(root: Any, input_type: Optional[str]) -> str:
        if isinstance(root, etree._Element):
            if input_type in ('json', 'text'):
                raise ValueError(f'Cannot use {type(root).__name__} object as root for {input_type!r} selector')
            return input_type or 'html'
        if input_type in ('html', 'xml'):
>           raise ValueError(f'Cannot use {type(root).__name__} object as root for {input_type!r} selector')
E           ValueError: Cannot use str object as root for 'html' selector

parsel/selector.py:92: ValueError
_________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________ SelectorTestCase.test_boolean_result _________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________

self = <test_selector.SelectorTestCase testMethod=test_boolean_result>

    def test_boolean_result(self) -> None:
        body = "<p><input name='a'value='1'/><input name='b'value='2'/></p>"
        xs = self.sscls(text=body)
>       self.assertEqual(xs.xpath("//input[@name='a']/@name='a'").extract(), ["1"])

tests/test_selector.py:369:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
parsel/selector.py:332: in xpa<response clipped><NOTE>Due to the max output limit, only part of the full response has been shown to you.</NOTE>'):
>           raise ValueError(f'Cannot use {type(root).__name__} object as root for {input_type!r} selector')
E           ValueError: Cannot use str object as root for 'html' selector

parsel/selector.py:92: ValueError
======================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================= short test summary info ========================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================
FAILED tests/test_selector.py::SelectorTestCase::test_bool - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_selector.py::SelectorTestCase::test_boolean_result - ValueError: Cannot use bool object as root for 'html' selector
FAILED tests/test_selector.py::SelectorTestCase::test_dont_strip - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_selector.py::SelectorTestCase::test_extract_first - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_selector.py::SelectorTestCase::test_http_header_encoding_precedence - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_selector.py::SelectorTestCase::test_make_links_absolute - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_selector.py::SelectorTestCase::test_mixed_nested_selectors - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_selector.py::SelectorTestCase::test_namespaces_adhoc - ValueError: Cannot use str object as root for 'xml' selector
FAILED tests/test_selector.py::SelectorTestCase::test_namespaces_adhoc_variables - ValueError: Cannot use str object as root for 'xml' selector
FAILED tests/test_selector.py::SelectorTestCase::test_namespaces_multiple - ValueError: Cannot use str object as root for 'xml' selector
FAILED tests/test_selector.py::SelectorTestCase::test_namespaces_multiple_adhoc - ValueError: Cannot use str object as root for 'xml' selector
FAILED tests/test_selector.py::SelectorTestCase::test_namespaces_simple - ValueError: Cannot use str object as root for 'xml' selector
FAILED tests/test_selector.py::SelectorTestCase::test_null_bytes_shouldnt_raise_errors - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_selector.py::SelectorTestCase::test_re_first - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_selector.py::SelectorTestCase::test_re_replace_entities - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_selector.py::SelectorTestCase::test_remove_attributes_namespaces - ValueError: Cannot use str object as root for 'xml' selector
FAILED tests/test_selector.py::SelectorTestCase::test_remove_namespaces - ValueError: Cannot use tuple object as root for 'xml' selector
FAILED tests/test_selector.py::SelectorTestCase::test_remove_namespaces_embedded - ValueError: Cannot use tuple object as root for 'xml' selector
FAILED tests/test_selector.py::SelectorTestCase::test_remove_pseudo_element_selector - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_selector.py::SelectorTestCase::test_remove_pseudo_element_selector_list - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_selector.py::SelectorTestCase::test_remove_root_element_selector - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_selector.py::SelectorTestCase::test_remove_selector - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_selector.py::SelectorTestCase::test_replacement_char_from_badly_encoded_body - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_selector.py::SelectorTestCase::test_representation_slice - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_selector.py::SelectorTestCase::test_representation_unicode_query - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_selector.py::SelectorTestCase::test_select_on_text_nodes - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_selector.py::SelectorTestCase::test_select_on_unevaluable_nodes - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_selector.py::SelectorTestCase::test_select_unicode_query - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_selector.py::SelectorTestCase::test_selector_get_alias - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_selector.py::SelectorTestCase::test_selector_getall_alias - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_selector.py::SelectorTestCase::test_selectorlist_get_alias - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_selector.py::SelectorTestCase::test_simple_selection - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_selector.py::SelectorTestCase::test_simple_selection_with_variables - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_selector.py::SelectorTestCase::test_simple_selection_with_variables_escape_friendly - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_selector.py::SelectorTestCase::test_smart_strings - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_selector.py::ExsltTestCase::test_regexp - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_selector.py::ExsltTestCase::test_set - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_selector.py::SelectorTestCaseBytes::test_bool - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_selector.py::SelectorTestCaseBytes::test_boolean_result - ValueError: Cannot use bool object as root for 'html' selector
FAILED tests/test_selector.py::SelectorTestCaseBytes::test_dont_strip - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_selector.py::SelectorTestCaseBytes::test_extract_first - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_selector.py::SelectorTestCaseBytes::test_http_header_encoding_precedence - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_selector.py::SelectorTestCaseBytes::test_make_links_absolute - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_selector.py::SelectorTestCaseBytes::test_mixed_nested_selectors - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_selector.py::SelectorTestCaseBytes::test_namespaces_adhoc - ValueError: Cannot use str object as root for 'xml' selector
FAILED tests/test_selector.py::SelectorTestCaseBytes::test_namespaces_adhoc_variables - ValueError: Cannot use str object as root for 'xml' selector
FAILED tests/test_selector.py::SelectorTestCaseBytes::test_namespaces_multiple - ValueError: Cannot use str object as root for 'xml' selector
FAILED tests/test_selector.py::SelectorTestCaseBytes::test_namespaces_multiple_adhoc - ValueError: Cannot use str object as root for 'xml' selector
FAILED tests/test_selector.py::SelectorTestCaseBytes::test_namespaces_simple - ValueError: Cannot use str object as root for 'xml' selector
FAILED tests/test_selector.py::SelectorTestCaseBytes::test_null_bytes_shouldnt_raise_errors - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_selector.py::SelectorTestCaseBytes::test_re_first - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_selector.py::SelectorTestCaseBytes::test_re_replace_entities - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_selector.py::SelectorTestCaseBytes::test_remove_attributes_namespaces - ValueError: Cannot use str object as root for 'xml' selector
FAILED tests/test_selector.py::SelectorTestCaseBytes::test_remove_namespaces - ValueError: Cannot use tuple object as root for 'xml' selector
FAILED tests/test_selector.py::SelectorTestCaseBytes::test_remove_namespaces_embedded - ValueError: Cannot use tuple object as root for 'xml' selector
FAILED tests/test_selector.py::SelectorTestCaseBytes::test_remove_pseudo_element_selector - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_selector.py::SelectorTestCaseBytes::test_remove_pseudo_element_selector_list - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_selector.py::SelectorTestCaseBytes::test_remove_root_element_selector - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_selector.py::SelectorTestCaseBytes::test_remove_selector - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_selector.py::SelectorTestCaseBytes::test_replacement_char_from_badly_encoded_body - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_selector.py::SelectorTestCaseBytes::test_select_on_text_nodes - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_selector.py::SelectorTestCaseBytes::test_select_on_unevaluable_nodes - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_selector.py::SelectorTestCaseBytes::test_select_unicode_query - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_selector.py::SelectorTestCaseBytes::test_selector_get_alias - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_selector.py::SelectorTestCaseBytes::test_selector_getall_alias - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_selector.py::SelectorTestCaseBytes::test_selectorlist_get_alias - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_selector.py::SelectorTestCaseBytes::test_simple_selection - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_selector.py::SelectorTestCaseBytes::test_simple_selection_with_variables - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_selector.py::SelectorTestCaseBytes::test_simple_selection_with_variables_escape_friendly - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_selector.py::SelectorTestCaseBytes::test_smart_strings - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_selector.py::ExsltTestCaseBytes::test_regexp - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_selector.py::ExsltTestCaseBytes::test_set - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_selector_csstranslator.py::CSSSelectorTest::test_attribute_function - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_selector_csstranslator.py::CSSSelectorTest::test_nested_selector - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_selector_csstranslator.py::CSSSelectorTest::test_pseudoclass_has - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_selector_csstranslator.py::CSSSelectorTest::test_text_pseudo_element - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_selector_csstranslator.py::CSSSelectorTestBytes::test_attribute_function - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_selector_csstranslator.py::CSSSelectorTestBytes::test_nested_selector - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_selector_csstranslator.py::CSSSelectorTestBytes::test_pseudoclass_has - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_selector_csstranslator.py::CSSSelectorTestBytes::test_text_pseudo_element - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_selector_jmespath.py::JMESPathTestCase::test_html_has_json - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_selector_jmespath.py::JMESPathTestCase::test_jmestpath_with_re - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_selector_jmespath.py::JMESPathTestCase::test_json_has_html - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_xml_attacks.py::XMLAttackTestCase::test_billion_laughs - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_xpathfuncs.py::XPathFuncsTestCase::test_has_class_newline - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_xpathfuncs.py::XPathFuncsTestCase::test_has_class_simple - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_xpathfuncs.py::XPathFuncsTestCase::test_has_class_tab - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_xpathfuncs.py::XPathFuncsTestCase::test_has_class_unicode - ValueError: Cannot use str object as root for 'html' selector
FAILED tests/test_xpathfuncs.py::XPathFuncsTestCase::test_has_class_uppercase - ValueError: Cannot use str object as root for 'html' selector
============================================================================================================================================================================================================================================================================================================================================================================================================================================================================================== 89 failed, 117 passed, 2 skipped in 2.89s ===============================================================================================================================================================================================================================================================================================================================================================================================================================================================================================
[The command completed with exit code 1.]
[Current working directory: /workspace/parsel]
[Python interpreter: /usr/bin/python]
[Command finished with exit code 1]