Fix server close tests

This commit is contained in:
Julien Duponchelle committed 2015-02-06 11:31:54 +01:00
1 parent 5c3969ae79
commit 571044b3e8
3 files changed
+7 -3

No files matched your search

+4 -1
View File
@@ -48,7 +48,10 @@ class _asyncio_patch:
def _fake_anwser(self):
future = asyncio.Future()
future.set_result(self.kwargs["return_value"])
if "return_value" in self.kwargs:
future.set_result(self.kwargs["return_value"])
else:
future.set_result(True)
return future