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.7/distutils/tests/__pycache__/test_msvccompiler.cpython-37.pyc
B

!��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�Wd||_XdS)NrcSsdS)N)NN�)Z	plat_specrr�=/usr/local/lib/python3.7/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�}|�|��|�|�|||���Wdtj�|�|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_vc2015rrrrrrr)r
rrrrrr�test_get_vc2015Asz$msvccompilerTestCase.test_get_vc2015N)�__name__�
__module__�__qualname__rrrrrrrrrsrcCs
t�t�S)N)rZ	makeSuiterrrrr�
test_suiteMsr#�__main__)�__doc__�sysrrZdistutils.errorsrZdistutils.testsrZtest.supportr�platformZSKIP_MESSAGEZ
skipUnlessZTempdirManagerZTestCaserr#r rrrr�<module>s
=