Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit431fde2

Browse files
committed
fixup! Make the serializer behave like a normal func with unknown kwargs
1 parent04da054 commit431fde2

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+
deftestThrowsUnknownOption():
153+
withpytest.raises(TypeError):
154+
HTMLSerializer(foobar=None)
155+
156+
152157
@pytest.mark.parametrize("c",list("\t\n\u000C\x20\r\"'=<>`"))
153158
deftestSpecQuoteAttribute(c):
154159
input_= [["StartTag","http://www.w3.org/1999/xhtml","span",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp