============================= test session starts ============================== platform sunos5 -- Python $(PYTHON_VERSION).X -- $(PYTHON) cachedir: .pytest_cache rootdir: $(@D) configfile: pyproject.toml testpaths: tests, docs collecting ... collected 25 items tests/test_doctests.py::test_docstrings PASSED tests/test_nh3.py::test_clean PASSED tests/test_nh3.py::test_clean_with_attribute_filter PASSED tests/test_nh3.py::test_clean_rel_attribute_conflict PASSED tests/test_nh3.py::test_cleaner_rel_attribute_conflict PASSED tests/test_nh3.py::test_clean_content_tags_overlap_with_default_tags PASSED tests/test_nh3.py::test_clean_content_tags_overlap_with_explicit_tags PASSED tests/test_nh3.py::test_clean_content_tags_no_overlap_ok PASSED tests/test_nh3.py::test_cleaner_clean_content_tags_overlap PASSED tests/test_nh3.py::test_clean_text PASSED tests/test_nh3.py::test_clean_content_tags_constant PASSED tests/test_nh3.py::test_frozenset_args PASSED tests/test_nh3.py::test_cleaner_frozenset_args PASSED tests/test_nh3.py::test_clean_url_relative_pass_through_is_default PASSED tests/test_nh3.py::test_clean_url_relative_deny PASSED tests/test_nh3.py::test_clean_url_relative_rewrite_with_base PASSED tests/test_nh3.py::test_clean_url_relative_rewrite_with_root PASSED tests/test_nh3.py::test_clean_url_relative_custom_replace PASSED tests/test_nh3.py::test_clean_url_relative_custom_strip_on_none PASSED tests/test_nh3.py::test_clean_url_relative_custom_exception_strips PASSED tests/test_nh3.py::test_clean_url_relative_invalid PASSED tests/test_nh3.py::test_cleaner_url_relative_reusable PASSED tests/test_nh3.py::test_is_html PASSED tests/test_nh3.py::test_escape PASSED docs/index.rst::index.rst PASSED =============================== warnings summary =============================== tests/test_nh3.py::test_clean_with_attribute_filter $(PYTHON_DIR)/vendor-packages/_pytest/unraisableexception.py:67: PytestUnraisableExceptionWarning: Exception ignored in: ('img', 'src', 'foo') Traceback (most recent call last): File "$(@D)/tests/test_nh3.py", line 88, in test_clean_with_attribute_filter nh3.clean(html, attribute_filter=lambda _element, _attribute, _value: True) ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: expected attribute_filter to return str or None Enable tracemalloc to get traceback where the object was allocated. See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info. warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) tests/test_nh3.py::test_clean_with_attribute_filter $(PYTHON_DIR)/vendor-packages/_pytest/unraisableexception.py:67: PytestUnraisableExceptionWarning: Exception ignored in: ('img', 'alt', 'Home') Traceback (most recent call last): File "$(@D)/tests/test_nh3.py", line 88, in test_clean_with_attribute_filter nh3.clean(html, attribute_filter=lambda _element, _attribute, _value: True) ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: expected attribute_filter to return str or None Enable tracemalloc to get traceback where the object was allocated. See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info. warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) tests/test_nh3.py::test_clean_with_attribute_filter $(PYTHON_DIR)/vendor-packages/_pytest/unraisableexception.py:67: PytestUnraisableExceptionWarning: Exception ignored in: ('a', 'rel', 'noopener noreferrer') Traceback (most recent call last): File "$(@D)/tests/test_nh3.py", line 88, in test_clean_with_attribute_filter nh3.clean(html, attribute_filter=lambda _element, _attribute, _value: True) ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: expected attribute_filter to return str or None Enable tracemalloc to get traceback where the object was allocated. See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info. warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) tests/test_nh3.py::test_clean_with_attribute_filter $(PYTHON_DIR)/vendor-packages/_pytest/unraisableexception.py:67: PytestUnraisableExceptionWarning: Exception ignored in: ('a', 'href', '/') Traceback (most recent call last): File "$(@D)/tests/test_nh3.py", line 88, in test_clean_with_attribute_filter nh3.clean(html, attribute_filter=lambda _element, _attribute, _value: True) ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: expected attribute_filter to return str or None Enable tracemalloc to get traceback where the object was allocated. See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info. warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) tests/test_nh3.py::test_clean_url_relative_custom_exception_strips $(PYTHON_DIR)/vendor-packages/_pytest/unraisableexception.py:67: PytestUnraisableExceptionWarning: Exception ignored in: None Traceback (most recent call last): File "$(@D)/tests/test_nh3.py", line 284, in boom raise RuntimeError("nope") RuntimeError: nope warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ======== 25 passed, 5 warnings ========