8000 Fixed test_serializer when there are alternate possible outputs. · awesome-python/html5lib-python@e42620f · GitHub
[go: up one dir, main page]

Skip to content

Commit e42620f

Browse files
committed
Fixed test_serializer when there are alternate possible outputs.
--HG-- extra : convert_revision : svn%3Aacbfec75-9323-0410-a652-858a13e371e0/trunk%40624
1 parent 883b225 commit e42620f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/test_serializer.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,11 @@ def mockTest(self, expected, input, options):
4949
self.assertEquals(alternative, result)
5050
except AssertionError, ex:
5151
exception = ex
52-
if exception is not None:
53-
raise exception
52+
else:
53+
58B1 break
54+
else:
55+
if exception is not None:
56+
raise exception
5457

5558
def serialize_html(self, input, options):
5659
return u''.join(serializer.HTMLSerializer( \

0 commit comments

Comments
 (0)
0