Test for 3.11 support (#2612)

Co-authored-by: Zhiwei <zhi.wei.liang@outlook.com>
This commit is contained in:
Adam Hopkins
2022-12-17 23:46:22 +02:00
committed by GitHub
parent 154863d6c6
commit bfb54b0969
13 changed files with 62 additions and 10 deletions

View File

@@ -314,10 +314,10 @@ async def test_dispatch_signal_triggers_event_on_bp(app):
waiter = bp.event("foo.bar.baz")
assert isawaitable(waiter)
fut = asyncio.ensure_future(do_wait())
fut = do_wait()
for signal in signal_group:
signal.ctx.event.set()
await fut
await asyncio.gather(fut)
assert bp_counter == 1