Skip to content

Commit d378cd2

Browse files
committed
Updat test
1 parent f9bf2f2 commit d378cd2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/test_async_tk_loop.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,8 @@ async def on_click(_event):
3232
await asyncio.sleep(0.1)
3333
root.destroy()
3434

35-
event_loop = asyncio.new_event_loop()
36-
async_handler(on_click, event_loop=event_loop)(Mock("Event"))
37-
38-
async_mainloop(root, event_loop)
35+
async_handler(on_click)(Mock("Event"))
36+
async_mainloop(root)
3937

4038

4139
@pytest.mark.timeout(TIMEOUT)

0 commit comments

Comments
 (0)