bpo-47062: Rename factory argument to loop_factory (GH-32113)

This commit is contained in:
Andrew Svetlov 2022-03-26 00:26:23 +02:00 committed by GitHub
parent d03acd7270
commit bad6ffaa64
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 8 deletions

View file

@ -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):