-
-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Description
Something that's not currently documented and took me some time to figure out: https://pytest-trio.readthedocs.io/en/stable/reference.html#mock_clock should mention that the custom fixture must be a normal fixture and not a pytest-trio one (which can easily happen if you make the fixture async def, for whatever reason). Which, of course, makes sense — you can't pass a clock to trio when you're already in the event loop — but it's a mistake that's easy to make, and that can go unnoticed for a while.
Metadata
Metadata
Assignees
Labels
No labels