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

+5
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)