I believe I found an error in test_serialize that causes four tests to
be marked as passing when the serialized result obtained is not in the
list of expected results.
Details below.
---------- Forwarded message ----------
From: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: May 31, 2007 9:24 AM
Subject: [html5lib commit] r651 - trunk/tests
To: [EMAIL PROTECTED]
Author: sa3ruby
Date: Thu May 31 06:24:00 2007
New Revision: 651
Modified:
trunk/tests/test_serializer.py
Log:
Instead of comparing the result against the previous result, compare it
against what is expected.
Modified: trunk/tests/test_serializer.py
==============================================================================
--- trunk/tests/test_serializer.py (original)
+++ trunk/tests/test_serializer.py Thu May 31 06:24:00 2007
@@ -68,8 +68,8 @@
if result not in expected:
if options.get("omit_optional_tags", True):
options["omit_optional_tags"] = False
- self.assertEquals(self.serialize_html(input, options), result)
- else:
+ result = self.serialize_html(input, options)
+ if result not in expected:
self.fail("Expected: %s, Received: %s" % (expected, result))
def serialize_html(self, input, options):
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"html5lib-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/html5lib-discuss?hl=en-GB
-~----------~----~----~----~------~----~------~--~---