Clean up mock_coro (#6037)

This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2017-02-15 23:19:34 -08:00
1 parent 9c176ad85a
commit 75e41a21c9
12 files changed
+37 -42

No files matched your search

+1 -6
View File
@@ -393,12 +393,7 @@ def mock_coro(return_value=None):
"""Fake coroutine."""
return return_value
return coro
def mock_generator(return_value=None):
"""Helper method to return a coro generator that returns a value."""
return mock_coro(return_value)()
return coro()
def mock_coro_func(return_value=None):