diff options
author | ville <ville@localhost> | 2009-11-16 18:52:23 +0000 |
---|---|---|
committer | ville <ville@localhost> | 2009-11-16 18:52:23 +0000 |
commit | eea0ee419d13f277e83aeef8cbf5983f1b780040 (patch) | |
tree | 24abb6bf5b55a32a4c2e26c9560bf640c861add6 | |
parent | 88a52648b59bfea86a966d18fe1be6e4e8102b84 (diff) | |
download | markup-validator-eea0ee419d13f277e83aeef8cbf5983f1b780040.zip markup-validator-eea0ee419d13f277e83aeef8cbf5983f1b780040.tar.gz markup-validator-eea0ee419d13f277e83aeef8cbf5983f1b780040.tar.bz2 |
Fix test URI escaping.
-rw-r--r-- | misc/testsuite/lib/ValidatorsAPIs.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/testsuite/lib/ValidatorsAPIs.py b/misc/testsuite/lib/ValidatorsAPIs.py index ec7f1ad..9b53fdb 100644 --- a/misc/testsuite/lib/ValidatorsAPIs.py +++ b/misc/testsuite/lib/ValidatorsAPIs.py @@ -28,7 +28,7 @@ class W3CValidatorHTTP: def call_check(self, TC_uri): """Make a request to the checker and store its response""" data = urllib.quote(TC_uri, "") - final_checker_URI = self.check_URI % {"URI": TC_uri } + final_checker_URI = self.check_URI % {"URI": data } try: response = urllib2.urlopen(final_checker_URI) return response @@ -92,4 +92,4 @@ class W3CValidatorHTTP_test(unittest.TestCase): self.assertNotEquals([results["NumErrors"], results["Validity"]], [0, "Valid"]) if __name__ == '__main__': - unittest.main()
\ No newline at end of file + unittest.main() |