Sindbad~EG File Manager

Current Path : /usr/local/lib/python3.9/distutils/tests/__pycache__/
Upload File :
Current File : //usr/local/lib/python3.9/distutils/tests/__pycache__/test_msvccompiler.cpython-39.opt-2.pyc

a

��g�@s�ddlZddlZddlZddlmZddlmZddlmZej	dkrJdndZ
e�e
due
�Gdd�dejej
��Zd	d
�Zedkr�ee��dS)�N)�DistutilsPlatformError)�support)�run_unittest�win32zThese tests are only for win32c@s,eZdZdd�Zdd�Zdd�Zdd�Zd	S)
�msvccompilerTestCasecCsHddlm}dd�}|j}||_z|�t|jd�W||_n||_0dS)NrcSsdS)N)NN�)Z	plat_specrr�=/usr/local/lib/python3.9/distutils/tests/test_msvccompiler.py�_find_vcvarsallsz>msvccompilerTestCase.test_no_compiler.<locals>._find_vcvarsallzwont find this version)�distutils._msvccompiler�
_msvccompilerr	ZassertRaisesr�_get_vc_env)�selfrr	Zold_find_vcvarsallrrr�test_no_compilers�z%msvccompilerTestCase.test_no_compilerc	Cs�ddlm}d}d}tj�dd�}|tj|<zL|�d�}|�|��|�|�|||���Wtj�|�|r�|tjd<ntj�|�|r�|tjd<0dS)NruṰḖṤṪ┅ṼẨṜu	₃⁴₅ZDISTUTILS_USE_SDKZx86)	r
r�os�environ�poprZassertIn�lowerZassertEqual)r
rZtest_varZ
test_valueZold_distutils_use_sdk�envrrr�test_get_vc_env_unicode#s

�z,msvccompilerTestCase.test_get_vc_env_unicodecCsJddlm}|��\}}|r<|�|d�|�tj�|��n
t�	d��dS)Nr�zVS 2017 is not installed)
r
rZ_find_vc2017�assertGreaterEqual�
assertTruer�path�isdir�unittest�SkipTest�r
r�versionrrrr�test_get_vc20175sz$msvccompilerTestCase.test_get_vc2017cCsJddlm}|��\}}|r<|�|d�|�tj�|��n
t�	d��dS)Nr�zVS 2015 is not installed)
r
rZ_find_vc2015rrrrrrrrrrr�test_get_vc2015Asz$msvccompilerTestCase.test_get_vc2015N)�__name__�
__module__�__qualname__rrrr rrrrrsrcCs
t�t�S)N)rZ	makeSuiterrrrr�
test_suiteMsr$�__main__)�sysrrZdistutils.errorsrZdistutils.testsrZtest.supportr�platformZSKIP_MESSAGEZ
skipUnlessZTempdirManagerZTestCaserr$r!rrrr�<module>s��>

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists