1 ============================= test session starts ==============================
2 platform sunos5 -- Python $(PYTHON_VERSION).X -- $(PYTHON)
3 cachedir: .pytest_cache
5 configfile: pyproject.toml
6 collecting ... collected 4 items
8 tests/test_nh3.py::test_clean PASSED
9 tests/test_nh3.py::test_clean_with_attribute_filter PASSED
10 tests/test_nh3.py::test_clean_text PASSED
11 tests/test_nh3.py::test_is_html PASSED
13 =============================== warnings summary ===============================
14 tests/test_nh3.py::test_clean_with_attribute_filter
15 $(PYTHON_DIR)/vendor-packages/_pytest/unraisableexception.py:85: PytestUnraisableExceptionWarning: Exception ignored in: ('img', 'src', 'foo')
17 Traceback (most recent call last):
18 File "$(@D)/tests/test_nh3.py", line 71, in test_clean_with_attribute_filter
19 nh3.clean(html, attribute_filter=lambda _element, _attribute, _value: True)
20 TypeError: expected attribute_filter to return str or None
22 warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))
24 -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
25 ======== 4 passed, 1 warning ========