U ÂÏ aoã@s>ddlZddlZddlZGdd„deƒZGdd„dejƒZdS)éNc@s eZdZdS)Ú SomeErrorN)Ú__name__Ú __module__Ú __qualname__©rrú\C:\Users\vtejo\AppData\Local\Temp\pip-unpacked-wheel-96vz34c0\greenlet\tests\test_tracing.pyrsrc@s"eZdZejrdd„Zdd„ZdS)Ú TracingTestsc s¦t ¡}g‰‡fdd„}dd„}dd„}t |¡}z.t |¡}| ¡t |¡}| t|j¡W5t |¡X| ˆd||ffd||ffd||ffd||ffg¡dS) Ncsˆ |¡dS©N)Úappend©Úargs©ÚactionsrrÚtrace sz1TracingTests.test_greenlet_tracing..tracecSsdSr rrrrrÚdummysz1TracingTests.test_greenlet_tracing..dummycSs tƒ‚dSr )rrrrrÚdummyexcsz4TracingTests.test_greenlet_tracing..dummyexcÚswitchÚthrow)ÚgreenletÚ getcurrentÚsettracerÚ assertRaisesrÚ assertEqual)ÚselfÚmainrrrÚoldtraceZg1Zg2rr rÚtest_greenlet_tracing s$         üz"TracingTests.test_greenlet_tracingc sŠt ¡‰g‰‡fdd„}‡fdd„}t |¡}| ¡t |¡}z"| t|j¡| t ¡d¡W5t |¡X| ˆdˆ|ffg¡dS)Ncsˆ |¡tƒ‚dSr )r rr r rrr%s z;TracingTests.test_exception_disables_tracing..tracecs ˆ ¡dSr )rr)rrrr(sz;TracingTests.test_exception_disables_tracing..dummyr)rrrrrrrÚgettrace)rrrÚgrr)rrrÚtest_exception_disables_tracing"s      ÿz,TracingTests.test_exception_disables_tracingN)rrrrZGREENLET_USE_TRACINGrrrrrrrsr)ZunittestÚ threadingrÚ ExceptionrZTestCaserrrrrÚs