diff --git a/src/test.py b/src/test.py index adb6d4773..a6cde6a3c 100644 --- a/src/test.py +++ b/src/test.py @@ -603,6 +603,8 @@ class FakeHTTPConnection(HTTPConnection): self.rfile = rfile self.wfile = wfile def send(self, data): + if minisix.PY3 and isinstance(data, bytes): + data = data.decode() self.wfile.write(data) #def putheader(self, name, value): # self._headers[name] = value