U W½gsã@s8ddlZddlZddlZddlmZGdd„deƒZdS)éNé)ÚTestCasec@s$eZdZdd„Zdd„Zdd„ZdS)Ú WeakRefTestscCs.dd„}t |ƒ¡}t ¡| |ƒd¡dS)NcSst dd„¡}| ¡|S)NcSsdS©N©rrrúK/opt/hc_python/lib64/python3.8/site-packages/greenlet/tests/test_weakref.pyÚ ózHWeakRefTests.test_dead_weakref.._dead_greenlet..)ÚgreenletÚswitch)ÚgrrrÚ_dead_greenlet sz6WeakRefTests.test_dead_weakref.._dead_greenlet)ÚweakrefÚrefÚgcÚcollectÚ assertEqual)Úselfr ÚorrrÚtest_dead_weakref s zWeakRefTests.test_dead_weakrefcCs(t t ¡¡}t ¡| |ƒd¡dSr)rrr rrr)rrrrrÚtest_inactive_weakrefsz"WeakRefTests.test_inactive_weakrefcsTg‰‡‡fdd„}t |¡‰ˆ ¡t dd„ˆ¡}t |¡‰d}| ˆdg¡dS)Nc s&zt ¡j ¡W5ˆ ˆƒ¡XdSr)Úappendr Z getcurrentÚparentr r©r ÚseenrrÚworkersz1WeakRefTests.test_dealloc_weakref..workercSsdSrrrrrrr r z3WeakRefTests.test_dealloc_weakref..)r r rrr)rrÚg2rrrÚtest_dealloc_weakrefs  z!WeakRefTests.test_dealloc_weakrefN)Ú__name__Ú __module__Ú __qualname__rrrrrrrrs r)rrr ÚrrrrrrÚs