403Webshell
Server IP : 118.27.122.248  /  Your IP : 216.73.217.103
Web Server : Apache
System : Linux web0264.sh.tyo1 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64
User : c9415830 ( 11735)
PHP Version : 8.4.17
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /opt/alt/python36/lib64/python3.6/distutils/tests/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/alt/python36/lib64/python3.6/distutils/tests/__pycache__/test_msvccompiler.cpython-36.pyc
3

x2_�@s�dZddlZddlZddlZddlmZddlmZddlm	Z	ej
dkrNdndZejedke�Gdd	�d	ej
ej��Zd
d�Zedkr�e	e��dS)
z"Tests for distutils._msvccompiler.�N)�DistutilsPlatformError)�support)�run_unittestZwin32zThese tests are only for win32c@sDeZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	dS)�msvccompilerTestCasecCs@ddlj}dd�}|j}||_z|jt|jd�Wd||_XdS)NrcSsdS)N)NN�)�	plat_specrr�F/opt/alt/python36/lib64/python3.6/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	�old_find_vcvarsallrrr�test_no_compilers

z%msvccompilerTestCase.test_no_compilercs`ddlj}|j��fdd�}||_z0|j�}|j�|jd|j�|jd|j�Wd�|_XdS)Nrcs�|�ddfS)Nrr)r)rrrr	(szCmsvccompilerTestCase.test_compiler_options.<locals>._find_vcvarsallz/MTz/MD)r
rr	�MSVCCompiler�
initialize�assertInZcompile_optionsZassertNotIn)r
rr	�compilerr)rr�test_compiler_options#s
z*msvccompilerTestCase.test_compiler_optionscszddlj}|j��fdd�}||_zJ|j�}|j�}|j�|j|�|jtj	j
tj	j|tj	jt
����Wd�|_XdS)Nrcs�|�dtfS)Nr)�__file__)r)rrrr	:szAmsvccompilerTestCase.test_vcruntime_copy.<locals>._find_vcvarsall)r
rr	�mkdtemprr�_copy_vcruntime�
assertTrue�os�path�isfile�join�basenamer)r
rr	�tempdirrr)rr�test_vcruntime_copy4s

z(msvccompilerTestCase.test_vcruntime_copycCsxddlj}|j�}|j�}|j�|j}|jtjj	|�|p<d�|j
|�|jtjj	tjj|tjj
|���|ppd�dS)Nrz<None>)r
rrrrZ_vcruntime_redistrrrrrZassertFalserr)r
rrrZdllrrr�test_vcruntime_skip_copyHs

z-msvccompilerTestCase.test_vcruntime_skip_copycCs~ddlj}d}d}tjjdd�}|tj|<z2|jd�}|j|j�|�|j|||j��Wdtjj|�|rx|tjd<XdS)NruṰḖṤṪ┅ṼẨṜu	₃⁴₅ZDISTUTILS_USE_SDKZx86)	r
rr�environ�poprr�lowerZassertEqual)r
rZtest_varZ
test_valueZold_distutils_use_sdk�envrrr�test_get_vc_env_unicodeVs


z,msvccompilerTestCase.test_get_vc_env_unicodecCsHddlj}|j�\}}|r:|j|d�|jtjj|��n
tj	d��dS)Nr�zVS 2017 is not installed)
r
rZ_find_vc2017�assertGreaterEqualrrr�isdir�unittest�SkipTest)r
r�versionrrrr�test_get_vc2017hs
z$msvccompilerTestCase.test_get_vc2017cCsHddlj}|j�\}}|r:|j|d�|jtjj|��n
tj	d��dS)Nr�zVS 2015 is not installed)
r
rZ_find_vc2015r'rrrr(r)r*)r
rr+rrrr�test_get_vc2015ts
z$msvccompilerTestCase.test_get_vc2015N)
�__name__�
__module__�__qualname__rrrr r%r,r.rrrrrsrcCs
tjt�S)N)r)Z	makeSuiterrrrr�
test_suite�sr2�__main__)�__doc__�sysr)rZdistutils.errorsrZdistutils.testsrZtest.supportr�platformZSKIP_MESSAGEZ
skipUnlessZTempdirManagerZTestCaserr2r/rrrr�<module>s
p

Youez - 2016 - github.com/yon3zu
LinuXploit