From d39f89508229ebb742d9a6d8e644cc359dfec1bd Mon Sep 17 00:00:00 2001 From: Oleksii Kliukin Date: Tue, 18 Apr 2017 12:44:42 +0200 Subject: [PATCH] Fix unit tests for Python 3.6 (#431) Python 3.6 complains about 'AttributeError: 'MockRequest' object has no attribute 'sendall' --- tests/test_api.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_api.py b/tests/test_api.py index b34b61db..7a61662a 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -101,6 +101,8 @@ class MockRequest(object): def makefile(self, *args, **kwargs): return IO(self.request) + def sendall(self, *args, **kwargs): + pass class MockRestApiServer(RestApiServer):