python-trio / trio-asyncio

a re-implementation of the asyncio mainloop on top of Trio
Other
188 stars 37 forks source link

trio_as_aio() can't handle async context managers that create a nursery or cancel scope... #55

Open oremanj opened 5 years ago

oremanj commented 5 years ago

... because it doesn't execute aenter and aexit in the same underlying Trio task. You get a super inscrutable chain of AssertionErrors.

Not sure how feasible this is to fix, but I ran into it today in my first attempt to use trio-asyncio for something real.

njsmith commented 5 years ago

Cf #42