A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.mail-archive.com/html5lib-discuss@googlegroups.com/msg00021.html below:

Fwd: [html5lib commit] r651 - trunk/tests

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 html5lib-discuss@googlegroups.com
 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
-~----------~----~----~----~------~----~------~--~---


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4