Skip to content

Commit 431fde2

Browse files
committed
fixup! Make the serializer behave like a normal func with unknown kwargs
1 parent 04da054 commit 431fde2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

html5lib/tests/test_serializer.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,11 @@ def testComment():
149149
throwsWithLatin1([["Comment", "\u0101"]])
150150

151151

152+
def testThrowsUnknownOption():
153+
with pytest.raises(TypeError):
154+
HTMLSerializer(foobar=None)
155+
156+
152157
@pytest.mark.parametrize("c", list("\t\n\u000C\x20\r\"'=<>`"))
153158
def testSpecQuoteAttribute(c):
154159
input_ = [["StartTag", "http://www.w3.org/1999/xhtml", "span",

0 commit comments

Comments
 (0)
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