diff options
Diffstat (limited to 'libs/html5lib/tests/sanitizer.py')
-rw-r--r-- | libs/html5lib/tests/sanitizer.py | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/libs/html5lib/tests/sanitizer.py b/libs/html5lib/tests/sanitizer.py index 93882ec47..bb4834214 100644 --- a/libs/html5lib/tests/sanitizer.py +++ b/libs/html5lib/tests/sanitizer.py @@ -27,14 +27,15 @@ class SanitizerTest(pytest.Item): expected = self.test["output"] parsed = parseFragment(input) - serialized = serialize(parsed, - sanitize=True, - omit_optional_tags=False, - use_trailing_solidus=True, - space_before_trailing_solidus=False, - quote_attr_values="always", - quote_char="'", - alphabetical_attributes=True) + with pytest.deprecated_call(): + serialized = serialize(parsed, + sanitize=True, + omit_optional_tags=False, + use_trailing_solidus=True, + space_before_trailing_solidus=False, + quote_attr_values="always", + quote_char="'", + alphabetical_attributes=True) errorMsg = "\n".join(["\n\nInput:", input, "\nExpected:", expected, "\nReceived:", serialized]) |