[testlib] when no validator specified, simply return stripped output, not None
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 15 Jul 2010 11:07:47 +0200
changeset 5974 cac990ad6180
parent 5973 eaf305258bbe
child 5977 5b1ce013ae32
[testlib] when no validator specified, simply return stripped output, not None
devtools/testlib.py
--- a/devtools/testlib.py	Thu Jul 15 10:44:46 2010 +0200
+++ b/devtools/testlib.py	Thu Jul 15 11:07:47 2010 +0200
@@ -705,7 +705,7 @@
             validatorclass = self.content_type_validators.get(view.content_type,
                                                               default_validator)
         if validatorclass is None:
-            return None
+            return output.strip()
         validator = validatorclass()
         if isinstance(validator, htmlparser.DTDValidator):
             # XXX remove <canvas> used in progress widget, unknown in html dtd