
    ;e%                     v    d Z ddlmZ ddlZ G d dej                  Zedk    r ej        d           dS dS )	zTest rpc, coverage 20%.    )rpcNc                        e Zd Zd Zd Zd ZdS )CodePicklerTestc                    d }t          j        |j                  \  }\  }|                     |t           j                   |                     d|           t          j        |          }|                     |j        d           d S )Nc                  0    t           t          z   t          z   S Nabc     1/usr/lib/python3.11/idlelib/idle_test/test_rpc.pyfz/CodePicklerTest.test_pickle_unpickle.<locals>.f   s    A	!r      test_rpc.pyr	   )r   pickle_code__code__assertIsunpickle_codeassertInassertEqualco_names)selfr   funccbytescodes        r   test_pickle_unpicklez$CodePicklerTest.test_pickle_unpickle
   s{    !!!/!*55ivdC-...nf--- ((88888r   c                 v    |                      t          d j                  t          j        j                   d S )Nc                      d S r   r   r   r   r   <lambda>z3CodePicklerTest.test_code_pickler.<locals>.<lambda>   s    4 r   )r   typer   r   CodePicklerdispatch_table)r   s    r   test_code_picklerz!CodePicklerTest.test_code_pickler   s9    dKK122o4	6 	6 	6 	6 	6r   c                 f    d }|                      dt          j        |j                             d S )Nc                      d S r   r   r   r   r   r   z%CodePicklerTest.test_dumps.<locals>.f   s      r   r   )r   r   dumpsr   )r   r   s     r   
test_dumpszCodePicklerTest.test_dumps   s/    nci
&;&;<<<<<r   N)__name__
__module____qualname__r   r$   r(   r   r   r   r   r      sA        9 9 96 6 6= = = = =r   r   __main__   )	verbosity)__doc__idlelibr   unittestTestCaser   r)   mainr   r   r   <module>r4      s            = = = = =h' = = =( zHMA r   