diff options
author | Oliver Smith <osmith@sysmocom.de> | 2023-09-13 15:55:37 +0200 |
---|---|---|
committer | laforge <laforge@osmocom.org> | 2023-09-13 16:10:58 +0000 |
commit | 92014a44fd038be1a9cbc1526fc4ecbc983ddd18 (patch) | |
tree | f486a1b5219c6b4f84f19b1d1d6e1c7d5d38f776 | |
parent | f5837cacdb0edc54b836a40511435edf713216c4 (diff) |
The loop arg has been removed in python 3.10. The same event loop will
be used without passing the argument, so it can be removed.
Fix for:
TypeError: gather() got an unexpected keyword argument 'loop'
Related: https://stackoverflow.com/a/60315290
Related: https://docs.python.org/3/library/asyncio-task.html#asyncio.gather
Change-Id: I776bc463246e7a1a9adbb7c06012353d65694507
-rw-r--r-- | tests/test_py3.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_py3.py b/tests/test_py3.py index 0d526a9..710dcb8 100644 --- a/tests/test_py3.py +++ b/tests/test_py3.py @@ -46,7 +46,7 @@ if __name__ == '__main__': print('Serving on {}...'.format(server.sockets[0].getsockname())) # Async client running in the subprocess plugged to the same event loop - loop.run_until_complete(asyncio.gather(asyncio.create_subprocess_exec('./scripts/osmo_ctrl.py', '-g', 'mnc', '-d', test_host, '-p', test_port), loop = loop)) + loop.run_until_complete(asyncio.gather(asyncio.create_subprocess_exec('./scripts/osmo_ctrl.py', '-g', 'mnc', '-d', test_host, '-p', test_port))) loop.run_forever() |