# HG changeset patch # User Sylvain Thénault # Date 1279184867 -7200 # Node ID cac990ad618086cb752d37bb8bae95ca0f8edbc7 # Parent eaf305258bbe9e82b249b4fb08b7fb5e26228d1a [testlib] when no validator specified, simply return stripped output, not None diff -r eaf305258bbe -r cac990ad6180 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 used in progress widget, unknown in html dtd