summaryrefslogtreecommitdiffstats
path: root/misc/testsuite/lib/ValidatorsAPIs.py
diff options
context:
space:
mode:
Diffstat (limited to 'misc/testsuite/lib/ValidatorsAPIs.py')
-rw-r--r--misc/testsuite/lib/ValidatorsAPIs.py4
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()