You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This relatively simple scenario causes the program to lock up in some weird state:
importasynciofromcollections.abcimportAsyncIteratorfromcontextlibimportasynccontextmanagerimportaiosqlite@asynccontextmanagerasyncdefacmgr_other() ->AsyncIterator[None]:
asyncwithasyncio.Lock(): # not actually needed, just to demonstrate any other context manager worksyield@asynccontextmanagerasyncdefacmgr_aiosqlite() ->AsyncIterator[None]:
asyncwithaiosqlite.connect("test.sqlite"):
yield@asynccontextmanagerasyncdefacmgr2() ->AsyncIterator[None]:
asyncwithacmgr_aiosqlite(): # hangs on acmgr_aiosqlite, passes on acmgr_otheryieldasyncdefgen() ->AsyncIterator[None]:
asyncwithacmgr2():
yieldNoneasyncdef_amain() ->None:
asyncfor_ingen():
raiseValueError()
asyncio.run(_amain())
process never ends.
After some experimenting around with acmgr_aiosqlite it seems like close() causes some weird behaviour around event loop:
Description
This relatively simple scenario causes the program to lock up in some weird state:
process never ends.
After some experimenting around with
acmgr_aiosqlite
it seems likeclose()
causes some weird behaviour around event loop:produces
Details
The text was updated successfully, but these errors were encountered: