HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //usr/local/lib/python3.10/dist-packages/greenlet/tests/__pycache__/test_weakref.cpython-310.pyc
o

���gs�@s8ddlZddlZddlZddlmZGdd�de�ZdS)�N�)�TestCasec@s$eZdZdd�Zdd�Zdd�ZdS)�WeakRefTestscCs.dd�}t�|��}t��|�|�d�dS)NcSst�dd��}|��|S)NcS�dS�N�rrr�F/usr/local/lib/python3.10/dist-packages/greenlet/tests/test_weakref.py�<lambda>�zHWeakRefTests.test_dead_weakref.<locals>._dead_greenlet.<locals>.<lambda>)�greenlet�switch)�grrr�_dead_greenlet
sz6WeakRefTests.test_dead_weakref.<locals>._dead_greenlet)�weakref�ref�gc�collect�assertEqual)�selfr�orrr�test_dead_weakref	szWeakRefTests.test_dead_weakrefcCs(t�t���}t��|�|�d�dSr)rrrrrr)rrrrr�test_inactive_weakrefsz"WeakRefTests.test_inactive_weakrefcsTg���fdd�}t�|�����t�dd���}t�|��d}|��dg�dS)Nc	s0zt��j��W�����dS�����wr)r�
getcurrent�parentr�appendr�r
�seenrr�workersz1WeakRefTests.test_dealloc_weakref.<locals>.workercSrrrrrrrr	 r
z3WeakRefTests.test_dealloc_weakref.<locals>.<lambda>)rrrrr)rr�g2rrr�test_dealloc_weakrefs

z!WeakRefTests.test_dealloc_weakrefN)�__name__�
__module__�__qualname__rrrrrrrrs	r)rrr�rrrrrr�<module>s