mirror of
https://github.com/outbackdingo/patroni.git
synced 2026-08-25 14:53:37 +00:00
Fix unit tests for Python 3.6 (#431)
Python 3.6 complains about 'AttributeError: 'MockRequest' object has no attribute 'sendall'
This commit is contained in:
committed by
Alexander Kukushkin
parent
dea8f22a37
commit
d39f895082
@@ -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):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user