- From: Ville Skytta via cvs-syncmail <cvsmail@w3.org>
- Date: Mon, 16 Nov 2009 18:52:25 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/validator/misc/testsuite/lib
In directory hutz:/tmp/cvs-serv29492/lib
Modified Files:
ValidatorsAPIs.py
Log Message:
Fix test URI escaping.
Index: ValidatorsAPIs.py
===================================================================
RCS file: /sources/public/validator/misc/testsuite/lib/ValidatorsAPIs.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- ValidatorsAPIs.py 22 Jul 2008 17:23:24 -0000 1.2
+++ ValidatorsAPIs.py 16 Nov 2009 18:52:23 -0000 1.3
@@ -28,7 +28,7 @@
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 @@
self.assertNotEquals([results["NumErrors"], results["Validity"]], [0, "Valid"])
if __name__ == '__main__':
- unittest.main()
\ No newline at end of file
+ unittest.main()
Received on Monday, 16 November 2009 18:52:27 UTC