Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
corranwebster committed Mar 18, 2024
1 parent 1df0bfc commit cf8c39d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions traits/observation/tests/test_observe.py
Original file line number Diff line number Diff line change
Expand Up @@ -711,8 +711,7 @@ async def handler(event):

with self.assertWarns(RuntimeWarning):
with self.assertRaises(RuntimeError):
async with asyncio.timeout(0.1):
dispatch_same(handler, event)
dispatch_same(handler, event)

self.assertFalse(event.is_set())

Expand Down
2 changes: 1 addition & 1 deletion traits/tests/test_observe.py
Original file line number Diff line number Diff line change
Expand Up @@ -959,7 +959,7 @@ def setUp(self):
self.addCleanup(_active_handler_tasks.clear)

async def test_async_dispatch(self):
event = Event()
event = asyncio.Event()

obj = SimpleAsyncExample(value='initial', event=event)

Expand Down

0 comments on commit cf8c39d

Please sign in to comment.