Your IP : 18.227.72.27


Current Path : /opt/alt/python36/lib64/python3.6/idlelib/idle_test/__pycache__/
Upload File :
Current File : //opt/alt/python36/lib64/python3.6/idlelib/idle_test/__pycache__/test_rpc.cpython-36.pyc

3

� f%�@sBdZddlmZddlZGdd�dej�Zedkr>ejdd�dS)	zTest rpc, coverage 20%.�)�rpcNc@s$eZdZdd�Zdd�Zdd�ZdS)�CodePicklerTestcCsPdd�}tj|j�\}\}|j|tj�|jd|�tj|�}|j|jd�dS)NcSstttS)N)�a�b�c�rr�?/opt/alt/python36/lib64/python3.6/idlelib/idle_test/test_rpc.py�fsz/CodePicklerTest.test_pickle_unpickle.<locals>.fstest_rpc.pyrrr)rrr)rZpickle_code�__code__ZassertIsZ
unpickle_code�assertInZassertEqual�co_names)�selfr	�funcZcbytes�coderrr�test_pickle_unpickle
s
z$CodePicklerTest.test_pickle_unpicklecCs|jtdd�j�tjj�dS)NcSsdS)Nrrrrr�<lambda>sz3CodePicklerTest.test_code_pickler.<locals>.<lambda>)r�typer
rZCodePickler�dispatch_table)r
rrr�test_code_picklersz!CodePicklerTest.test_code_picklercCs dd�}|jdtj|j��dS)NcSsdS)Nrrrrrr	sz%CodePicklerTest.test_dumps.<locals>.fstest_rpc.py)rr�dumpsr
)r
r	rrr�
test_dumpsszCodePicklerTest.test_dumpsN)�__name__�
__module__�__qualname__rrrrrrrrsr�__main__�)�	verbosity)�__doc__ZidlelibrZunittestZTestCaserr�mainrrrr�<module>s


?>