Unverified Commit 702abdb2 authored by Damian Johnson's avatar Damian Johnson Committed by Philipp Winter
Browse files

Fix type issue for moat response

Fixing the following...

  Traceback (most recent call last):
    File "/home/atagar/Desktop/tor/bridgedb/bridgedb/test/test_distributors_moat_server.py", line 298, in test_getChild
      self.assertIn('does not implement GET http://dummy/', detail)
    File "/usr/local/lib/python3.5/dist-packages/twisted/trial/_synctest.py", line 492, in assertIn
      % (containee, container))
  twisted.trial.unittest.FailTest: 'does not implement GET http://dummy/' not in "moat version 0.1.0 does not implement b'GET' b'http://dummy/'"

Test results changed as follows...

  before: FAILED (skips=115, failures=20, successes=849)
  after:  FAILED (skips=115, failures=19, successes=850)
parent 5c1c88c6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -240,7 +240,7 @@ class CustomErrorHandlingResource(resource.Resource):

        response = resource501
        response.detail = "moat version %s does not implement %s %s" % \
                          (MOAT_API_VERSION, request.method, request.uri)
                          (MOAT_API_VERSION, request.method.decode('utf-8'), request.uri.decode('utf-8'))
        return response