HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //usr/local/lib/python3.10/distutils/tests/__pycache__/test_msvccompiler.cpython-310.pyc
o

�i�@s�dZddlZddlZddlZddlmZddlmZddlm	Z	ej
dkr'dndZe�edue�Gdd	�d	ej
ej��Zd
d�ZedkrKe	e��dSdS)
z"Tests for distutils._msvccompiler.�N)�DistutilsPlatformError)�support)�run_unittest�win32zThese tests are only for win32c@s,eZdZdd�Zdd�Zdd�Zdd�Zd	S)
�msvccompilerTestCasecCsFddlm}dd�}|j}||_z|�t|jd�W||_dS||_w)NrcSsdS)N)NN�)Z	plat_specrr�>/usr/local/lib/python3.10/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|<z)|�d�}|�|��|�|�|||���Wtj�|�|r>|tjd<dSdStj�|�|rM|tjd<w)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_unicodecC�Hddlm}|��\}}|r|�|d�|�tj�|��dSt�	d��)Nr�zVS 2017 is not installed)
r
rZ_find_vc2017�assertGreaterEqual�
assertTruer�path�isdir�unittest�SkipTest�r
r�versionrrrr�test_get_vc20175�
z$msvccompilerTestCase.test_get_vc2017cCr)Nr�zVS 2015 is not installed)
r
rZ_find_vc2015rrrrrrrrrrr�test_get_vc2015Ar z$msvccompilerTestCase.test_get_vc2015N)�__name__�
__module__�__qualname__rrrr"rrrrrs
rcCs
t�t�S)N)rZ	makeSuiterrrrr�
test_suiteMs
r&�__main__)�__doc__�sysrrZdistutils.errorsrZdistutils.testsrZtest.supportr�platformZSKIP_MESSAGEZ
skipUnlessZTempdirManagerZTestCaserr&r#rrrr�<module>s$��>�