mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
bpo-47062: Rename factory argument to loop_factory (GH-32113)
This commit is contained in:
parent
d03acd7270
commit
bad6ffaa64
3 changed files with 8 additions and 8 deletions
|
@ -201,7 +201,7 @@ class RunnerTests(BaseTest):
|
|||
|
||||
def test_custom_factory(self):
|
||||
loop = mock.Mock()
|
||||
with asyncio.Runner(factory=lambda: loop) as runner:
|
||||
with asyncio.Runner(loop_factory=lambda: loop) as runner:
|
||||
self.assertIs(runner.get_loop(), loop)
|
||||
|
||||
def test_run(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue