o
    iK                     @   sx   d dl Z d dlmZmZ d dlZdd Zdd Zedd Zed	d
dd ZG dd dej	Z
edkr:e  dS dS )    N)jitint32c                 C      | | S N abr   r   i/var/www/html/eduruby.in/lip-sync/lip-sync-env/lib/python3.10/site-packages/numba/tests/test_interproc.pyfoo   s   r   c                 C   s   t | || S r   )cfoor   r   r   r
   bar   s   r   c                 C   r   r   r   xyr   r   r
   inner   s   r   TZnopythonc                 C   s
   t | |S r   )r   r   r   r   r
   outer   s   
r   c                   @   s$   e Zd Zdd Zdd Zdd ZdS )TestInterProcc                 C   s>   t ttfddtat ttfddt}| |ddd d S )NTr            )r   r   r   r   r   assertEqual)selfcbarr   r   r
   test_bar_call_foo   s   zTestInterProc.test_bar_call_fooc                 C   sT   t dD ]}tttfddtat  qtttfddt}| |ddd d S )Nr   Tr   r   r   )	ranger   r   r   r   gcZcollectr   r   )r   ir   r   r   r
    test_bar_call_foo_compiled_twice   s
   
z.TestInterProc.test_bar_call_foo_compiled_twicec                 C   s   |  tddd d S )Nr   r      )r   r   )r   r   r   r
   test_callsite_compilation*   s   z'TestInterProc.test_callsite_compilationN)__name__
__module____qualname__r   r   r!   r   r   r   r
   r      s    r   __main__)r   Znumbar   r   Zunittestr   r   r   r   ZTestCaser   r"   mainr   r   r   r
   <module>   s    

