
    i                         d dl Z d dlZd dlZd dlZd dlmZ d dlZ ej                  d      ZdZ	g dZ
ej                  j                  ej                  j                  d      d      ej                  j                  d	e
      d
               Zej                  j                  ej                  j                  d      d      d        Zy)    N)PathmypyF))mypy-plugin.inizsuccess_plugin.pyzsuccess-plugin.txt)r   zfail_plugin.pyzfail-plugin.txt)mypy-default.inizsuccess_no_plugin.pyzsuccess-no-plugin.txt)r   zfail_no_plugin.pyzfail-no-plugin.txtz.pyzNon-compiled mypy is too slow)reasonz/config_filename,python_filename,output_filenamec           
         ddl m} t        j                  |       t	        t
              j                  }t	        t
              j                  j                  j                  j                  }dt        j                  vr|j                  dt        |             t	        |      }|d|  z  }	|d| z  }
|d| z  }|| z  }||z  }t        j                  t        |	      |       t        j                  t        |
      |       d}d}d	}|j                         }|d
| d d  z  }t        |      dt        |      dt        |      dg}t        ddj                  |              |j!                  |      }|\  }}}dj                  |j#                  d      D cg c](  }|sdj                  |j#                  d      d	d        * c}      j%                         }t'        j(                  dd|      }t*        r||j-                  |       n(|j%                         |j%                         k(  sJ |       ||k(  sJ ||k(  sJ y c c}w )Nr   )apiz--pyargsMYPYPATHzconfigs/zmodules/zoutputs/    z.mypy_cache/test-z--config-filez--cache-dirz--show-error-codesz
Executing: mypy  
z.py:z\n\s*\nz\n)r   r	   oschdirr   __file__parentsysargvsetenvstrshutilcopy	read_textprintjoinrunsplitstripresubGENERATE
write_text)config_filenamepython_filenameoutput_filenametmpdirmonkeypatchmypy_apiroot_dirthinc_root_dirtmpdir_pathfull_config_pathfull_module_pathfull_output_pathfull_tmp_config_pathfull_tmp_module_pathexpected_outexpected_errexpected_returncode	cache_dircommandactual_result
actual_out
actual_erractual_returncodelines                           k/var/www/vps2.regionflexible.com/Desarrollo/venv/lib/python3.12/site-packages/thinc/tests/mypy/test_mypy.pytest_mypy_resultsr=      sA    %HHVH~$$H(^**1188??N!:s>':;v,K%(?2C(DD%(?2C(DD%(?2C(DD!,!>!,!>
KK$%v.
KK$%v.LL#--/L  1/#22F1GHHI ! !IG 

SXXg./0 LL)M0=-J
-9C9I9I$9OXSWTZZ'+	,Xeg  
E:6JO/##J/!\%7%7%99E:E9%%% 3333 	Ys   I"%Ic                      t         rJ y)z>
    Makes sure we don't accidentally leave generation on
    N)r"        r<   test_generation_is_disabledrA   T   s     <xr@   )r   r    r   r   pathlibr   pytestimportorskipr   r"   casesmarkskipifr   endswithparametrizer=   rA   r?   r@   r<   <module>rJ      s    	 	  
  v6" 	 MM5!*I   JER74 S74t MM5!*I  r@   