Skip to content

Commit 63fd6f7

Browse files
committed
Serializer tests for optional tags no longer contain the serialization with optional tags *not* omitted. This is now tested within the tests python code (which makes it easier to disable such a test to ensure optional tags *are* omitted)
--HG-- extra : convert_revision : svn%3Aacbfec75-9323-0410-a652-858a13e371e0/trunk%40627
1 parent e42620f commit 63fd6f7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_serializer.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ def mockTest(self, expected, input, options):
4747
for alternative in expected:
4848
try:
4949
self.assertEquals(alternative, result)
50-
except AssertionError, ex:
51-
exception = ex
50+
except AssertionError:
51+
pass
5252
else:
5353
break
5454
else:
55-
if exception is not None:
56-
raise exception
55+
options["omit_optional_tags"] = False
56+
self.assertEquals(self.serialize_html(input, options), result)
5757

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

0 commit comments

Comments
 (0)