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

Commit60456e8

Browse files
committed
Clarify variable names in test_parser.py.
1 parent196759a commit60456e8

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

‎html5lib/tests/test_parser.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def convertTreeDump(data):
2727

2828
defrunParserTest(innerHTML,input,expected,errors,treeClass,
2929
namespaceHTMLElements):
30-
withwarnings.catch_warnings(record=True)asw:
30+
withwarnings.catch_warnings(record=True)ascaughtWarnings:
3131
warnings.simplefilter("always")
3232
p=html5parser.HTMLParser(tree=treeClass,
3333
namespaceHTMLElements=namespaceHTMLElements)
@@ -42,9 +42,10 @@ def runParserTest(innerHTML, input, expected, errors, treeClass,
4242
"\nTraceback:",traceback.format_exc()])
4343
assertFalse,errorMsg
4444

45-
otherW= [xforxinwifnotissubclass(x.category,constants.DataLossWarning)]
46-
assertlen(otherW)==0, [(x.category,x.message)forxinotherW]
47-
iflen(w):
45+
otherWarnings= [xforxincaughtWarnings
46+
ifnotissubclass(x.category,constants.DataLossWarning)]
47+
assertlen(otherWarnings)==0, [(x.category,x.message)forxinotherWarnings]
48+
iflen(caughtWarnings):
4849
return
4950

5051
output=convertTreeDump(p.tree.testSerializer(document))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp