Commit 028de06a authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

test: improve HTTP body extraction in W3Validator.

so that the error is much more visible when the validator itself fails.
parent 06edec0c
...@@ -455,7 +455,7 @@ class W3Validator(object): ...@@ -455,7 +455,7 @@ class W3Validator(object):
"REQUEST_METHOD": "POST"}).communicate(source) "REQUEST_METHOD": "POST"}).communicate(source)
# Output is a set of headers then the XML content. # Output is a set of headers then the XML content.
return self._parse_validation_results( return self._parse_validation_results(
stdout.split('<?xml version="1.0" encoding="UTF-8"?>')[1]) stdout.split('\n\n', 1)[1])
class TidyValidator(object): class TidyValidator(object):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment