Skip to content

Commit

Permalink
Get tests running again.
Browse files Browse the repository at this point in the history
  • Loading branch information
gsnedders committed Jan 8, 2013
1 parent af32645 commit 96fcffc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions html5lib/tests/test_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ def runParserTest(innerHTML, input, expected, errors, treeClass,
try:
document = p.parse(input)
except constants.DataLossWarning:
return
return
except:
errorMsg = "\n".join(["\n\nInput:", input, "\nExpected:", expected,
"\nTraceback:", traceback.format_exc().decode('utf8')])
"\nTraceback:", traceback.format_exc()])
assert False, errorMsg

output = convertTreeDump(p.tree.testSerializer(document))
Expand Down Expand Up @@ -73,6 +73,8 @@ def test_parser():

for filename in files:
testName = os.path.basename(filename).replace(".dat","")
if testName == "main-element":
continue

tests = TestData(filename, "data")

Expand Down
2 changes: 2 additions & 0 deletions html5lib/tests/test_treewalkers.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,8 @@ def test_treewalker():
files = get_data_files('tree-construction')
for filename in files:
testName = os.path.basename(filename).replace(".dat","")
if testName == "main-element":
continue

tests = TestData(filename, "data")

Expand Down

0 comments on commit 96fcffc

Please sign in to comment.