
    ie                    ^    d Z ddlmZ ddlZddlZddlmZ ddlZddlZ G d de          Z	dS )zTA basic check to make sure that we are using a mypyc-compiled version when expected.    )annotationsN)TestCasec                      e Zd ZddZddZdS )	MypycTestreturnNonec                    t          j        dd           dk    r)t          j                            d          rJ d            d S d S )N
TEST_MYPYC1z.pyz)Expected to find a mypyc-compiled version)osgetenvmypy__file__endswith)selfs    R/root/projects/qq-shell/venv/lib64/python3.11/site-packages/mypy/test/testmypyc.pytest_using_mypyczMypycTest.test_using_mypyc   sL    9\4((C//}--e44aa6aaaa 0/aa    c           	     .   t          j        dd           dk    ryt          j        d         }dD ]f}t	          j        t           j                            ||          t           j                            |d|          d          sJ d| d	            ed S d S )
Nr
   r   r   )zbuild_setup.pyzlib-rtF)shallowz(Shared files inconsistent, run cp mypyc/z mypyc/lib-rt)r   r   mypyc__path__filecmpcmppathjoin)r   
mypyc_pathfs      r   test_shared_files_consistentz&MypycTest.test_shared_files_consistent   s    9\4((C//*J' O O{GLLQ//GLLXq99!   O O OaNNN	O O O O 0/O Or   N)r   r   )__name__
__module____qualname__r   r    r   r   r   r      sF        b b b bO O O O O Or   r   )
__doc__
__future__r   r   r   unittestr   r   r   r   r#   r   r   <module>r'      s    Z Z " " " " " "  				        O O O O O O O O O Or   