diff --git a/html5lib/tests/test_sanitizer.py b/html5lib/tests/test_sanitizer.py index f3faeb80..6ad43a3a 100644 --- a/html5lib/tests/test_sanitizer.py +++ b/html5lib/tests/test_sanitizer.py @@ -1,9 +1,14 @@ from __future__ import absolute_import, division, unicode_literals +import warnings + import pytest from html5lib import constants, parseFragment, serialize -from html5lib.filters import sanitizer + +with warnings.catch_warnings(): + warnings.simplefilter("ignore", DeprecationWarning) + from html5lib.filters import sanitizer def sanitize_html(stream): diff --git a/pytest.ini b/pytest.ini index 8824977a..1f620d98 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,6 +1,6 @@ [pytest] # Output fails, errors, xpass, and warnings; ignore doctest; make warnings errors -addopts = -rfEXw -p no:doctest --strict +addopts = -rfEXw -p no:doctest --strict-markers # Make xpass results be considered fail xfail_strict = true pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy