
    6 f                        d Z ddlmZ ddlmZ ddlmZ ddlmZ ddl	m
Z
 ddlmZmZ ddlmZ  G d	 d
e          ZddZdS )z(Tests for mypy incremental error output.    )annotations)build)CompileError)BuildSource)Options)DataDrivenTestCase	DataSuite)assert_string_arrays_equalc                  $    e Zd ZdZdZdgZd
dZd	S )ErrorStreamSuiteT.zerrorstream.testtestcaser   returnNonec                $    t          |           d S )N)test_error_stream)selfr   s     O/var/www/equiseq/venv/lib/python3.11/site-packages/mypy/test/testerrorstream.pyrun_casezErrorStreamSuite.run_case   s    (#####    Nr   r   r   r   )__name__
__module____qualname__required_out_section	base_pathfilesr    r   r   r   r      s;        I E$ $ $ $ $ $r   r   r   r   r   r   c           	     l   t                      }d|_        d|_        g dfd}t          d	d
d                    | j                            g}	 t          j        |||           n$# t          $ r}|j        g k    sJ Y d}~nd}~ww xY wt          | j
        d| j         d| j         d           dS )zmPerform a single error streaming test case.

    The argument contains the description of the test case.
    Tmsgs	list[str]seriousboolr   r   c                d    | r,                     d                               |            d S d S )Nz==== Errors flushed ====)appendextend)r    r"   logged_messagess     r   flush_errorsz'test_error_stream.<locals>.flush_errors    sD     	)""#=>>>""4(((((	) 	)r   main__main__
)sourcesoptionsr(   NzInvalid output (z, line ))r    r!   r"   r#   r   r   )r   show_tracebackhide_error_codesr   joininputr   r   messagesr
   outputfileline)r   r-   r(   r,   er'   s        @r   r   r      s   
 iiG!G#G!#O) ) ) ) ) )
 6:tyy/H/HIIJG GW<PPPPP      zR  *cX]*c*cS[S`*c*c*c    s   A) )
B
3BB
Nr   )__doc__
__future__r   mypyr   mypy.errorsr   mypy.modulefinderr   mypy.optionsr   mypy.test.datar   r	   mypy.test.helpersr
   r   r   r   r   r   <module>r@      s    . . " " " " " "       $ $ $ $ $ $ ) ) ) ) ) )             8 8 8 8 8 8 8 8 8 8 8 8 8 8$ $ $ $ $y $ $ $     r   