[tor-commits] [bridgedb/develop] Fix CaptchaProtectedResourceTests.test_render_GET_noCaptcha unittest.

isis at torproject.org isis at torproject.org
Wed Mar 26 05:49:31 UTC 2014


commit 7753289270a992dd51326164803ff4c7076e4da8
Author: Isis Lovecruft <isis at torproject.org>
Date:   Tue Mar 18 04:39:38 2014 +0000

    Fix CaptchaProtectedResourceTests.test_render_GET_noCaptcha unittest.
    
    We shouldn't return ``(None, None)`` in a stub method when all the other
    methods and child classes expect ``(str, str)``.
---
 lib/bridgedb/HTTPServer.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/bridgedb/HTTPServer.py b/lib/bridgedb/HTTPServer.py
index 96ee029..a67d5ae 100644
--- a/lib/bridgedb/HTTPServer.py
+++ b/lib/bridgedb/HTTPServer.py
@@ -142,7 +142,7 @@ class CaptchaProtectedResource(twisted.web.resource.Resource):
                   string. If unable to retrieve a CAPTCHA, returns
                   ``(None, None)``.
         """
-        return (None, None)
+        return ('', '')
 
     def extractClientSolution(self, request):
         """Extract the client's CAPTCHA solution from a POST request.





More information about the tor-commits mailing list