Server : LiteSpeed
System : Linux server51.dnsbootclub.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
User : nandedex ( 1060)
PHP Version : 8.1.33
Disable Function : NONE
Directory :  /opt/cppython/lib/python3.8/distutils/tests/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]


Current File : //opt/cppython/lib/python3.8/distutils/tests/__pycache__/test_msvccompiler.cpython-38.opt-1.pyc
U

@��g�@s�dZddlZddlZddlZddlmZddlmZddlm	Z	ej
dkrNdndZe�edke�Gdd	�d	ej
ej��Zd
d�Zedkr�e	e��dS)
z"Tests for distutils._msvccompiler.�N)�DistutilsPlatformError)�support)�run_unittest�win32zThese tests are only for win32c@s,eZdZdd�Zdd�Zdd�Zdd�Zd	S)
�msvccompilerTestCasecCsBddlm}dd�}|j}||_z|�t|jd�W5||_XdS)NrcSsdS)N)NN�)Z	plat_specrr�@/opt/cppython/lib/python3.8/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|<z2|�d�}|�|��|�|�|||���W5tj�|�|rz|tjd<XdS)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__)�__doc__�sysrrZdistutils.errorsrZdistutils.testsrZtest.supportr�platformZSKIP_MESSAGEZ
skipUnlessZTempdirManagerZTestCaserr$r!rrrr�<module>s ��>

F1le Man4ger