forked from auracaster/bumble_mirror
python 3.12 compatibility
This commit is contained in:
@@ -81,7 +81,7 @@ console_scripts =
|
|||||||
build =
|
build =
|
||||||
build >= 0.7
|
build >= 0.7
|
||||||
test =
|
test =
|
||||||
pytest >= 8.0
|
pytest >= 8.2
|
||||||
pytest-asyncio >= 0.23.5
|
pytest-asyncio >= 0.23.5
|
||||||
pytest-html >= 3.2.0
|
pytest-html >= 3.2.0
|
||||||
coverage >= 6.4
|
coverage >= 6.4
|
||||||
@@ -89,9 +89,9 @@ development =
|
|||||||
black == 24.3
|
black == 24.3
|
||||||
grpcio-tools >= 1.62.1
|
grpcio-tools >= 1.62.1
|
||||||
invoke >= 1.7.3
|
invoke >= 1.7.3
|
||||||
mypy == 1.8.0
|
mypy == 1.10.0
|
||||||
nox >= 2022
|
nox >= 2022
|
||||||
pylint == 2.15.8
|
pylint == 3.1.0
|
||||||
pyyaml >= 6.0
|
pyyaml >= 6.0
|
||||||
types-appdirs >= 1.4.3
|
types-appdirs >= 1.4.3
|
||||||
types-invoke >= 1.7.3
|
types-invoke >= 1.7.3
|
||||||
|
|||||||
@@ -214,6 +214,12 @@ async def test_device_connect_parallel():
|
|||||||
d1.host.set_packet_sink(Sink(d1_flow()))
|
d1.host.set_packet_sink(Sink(d1_flow()))
|
||||||
d2.host.set_packet_sink(Sink(d2_flow()))
|
d2.host.set_packet_sink(Sink(d2_flow()))
|
||||||
|
|
||||||
|
d1_accept_task = asyncio.create_task(d1.accept(peer_address=d0.public_address))
|
||||||
|
d2_accept_task = asyncio.create_task(d2.accept())
|
||||||
|
|
||||||
|
# Ensure that the accept tasks have started.
|
||||||
|
await async_barrier()
|
||||||
|
|
||||||
[c01, c02, a10, a20] = await asyncio.gather(
|
[c01, c02, a10, a20] = await asyncio.gather(
|
||||||
*[
|
*[
|
||||||
asyncio.create_task(
|
asyncio.create_task(
|
||||||
@@ -222,8 +228,8 @@ async def test_device_connect_parallel():
|
|||||||
asyncio.create_task(
|
asyncio.create_task(
|
||||||
d0.connect(d2.public_address, transport=BT_BR_EDR_TRANSPORT)
|
d0.connect(d2.public_address, transport=BT_BR_EDR_TRANSPORT)
|
||||||
),
|
),
|
||||||
asyncio.create_task(d1.accept(peer_address=d0.public_address)),
|
d1_accept_task,
|
||||||
asyncio.create_task(d2.accept()),
|
d2_accept_task,
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user