o
    tBh                     @   s   d Z ddlZddlZg ZeeD ]+Zedr;eeeZze  W q e	y: Z
 zee  W Y dZ
[
qdZ
[
ww qerlddlmZmZ ddlZdd Zeedd d	Zedd
 D ]	Z
ee
  e  q\ed
 d dS )a  Default driver for run tests (run-*.test).

This imports the 'native' module (containing the compiled test cases)
and calls each function starting with test_, and reports any
exceptions as failures.

Test cases can provide a custom driver.py that overrides this file.
    Ntest_)print_exception	format_tbc                 C   s0   d t| }td|}|d u rdS |dS )N
z=File "(native|driver).py", line ([0-9]+), in (test_|<module>)0   )joinr   researchgroup)tb	formattedm r   t/var/www/html/riverr-enterprise-integrations-main/venv/lib/python3.10/site-packages/mypyc/test-data/driver/driver.pyextract_line   s
   
r   c                 C   s   t | d S )N   )r   )er   r   r   <lambda>#   s    r   )keyr   )__doc__sysnativefailuresdirname
startswithgetattr	test_func	Exceptionr   appendexc_info	tracebackr   r   r	   r   sortedprintr   r   r   r   <module>   s0    	


