python (3.11.7)

(root)/
lib/
python3.11/
distutils/
tests/
__pycache__/
test_cygwinccompiler.cpython-311.opt-1.pyc

edZddlZddlZddlZddlmZddlmZddlm	Z	m
Z
mZmZm
Z
mZddlmZGddeZGd	d
ejejZedkrejdSdS)z$Tests for distutils.cygwinccompiler.N)BytesIO)cygwinccompiler)check_config_hCONFIG_H_OKCONFIG_H_NOTOKCONFIG_H_UNCERTAINget_versions	get_msvcr)supportceZdZdZdZdS)	FakePopenNc|d|_|jj}|j|vr!t	||j|_dSt
j|d|_dS)Nrr)splitcmd
test_class_exesrstdoutospopen)selfrshellrexess     X/BuggyBox/python/3.11.7/bootstrap/lib/python3.11/distutils/tests/test_cygwinccompiler.py__init__zFakePopen.__init__s\99;;q>$8t!$tx.11DKKK(3,,DKKK)__name__
__module____qualname__rrrrr
r
s(J-----rr
cFeZdZfdZfdZdZdZdZdZdZ	xZ
S)CygwinCCompilerTestCasectt|tj|_t
j|d|_	ddl
m}|j|_
|j|_tj|_|jt_i|_tj|_|t,_t,t_dS)Nzpython.hr	sysconfig)superr"setUpsysversionrpathjoinmkdtemppython_h	distutilsr%get_config_h_filenameold_get_config_h_filename_get_config_h_filenamerfind_executableold_find_executable_find_executablerPopen	old_popenr
rrr%	__class__s  rr'zCygwinCCompilerTestCase.setUps
%t,,22444{T\\^^Z@@
'''''')2)H&*.*E	'#2#B *.*?'
(.#	 )rc|jt_ddlm}|j|_|jt_|j	t_
tt|
dS)Nrr$)r)r(r.r%r0r/r3rr2r6r5r&r"tearDownr7s  rr:z CygwinCCompilerTestCase.tearDown,sal''''''*.*H	'*.*B' $
%t,,5577777rc|jSN)r-rs rr1z.CygwinCCompilerTestCase._get_config_h_filename4s
}rc||jvr|SdSr<)r)rnames  rr4z(CygwinCCompilerTestCase._find_executable7s4:Ktrc
dt_|tdtdt_|tdt
||jd|tdt||jd|tdtdS)NX2.6.1 (r261:67515, Dec  6 2008, 16:42:21) 
[GCC 4.0.1 (Apple Computer, Inc. build 5370)]rzsomething without the *CC wordxxxzxxx __GNUC__ xxx)	r(r)assertEqualrrr
write_filer-rr=s rtest_check_config_hz+CygwinCCompilerTestCase.test_check_config_h<sB	
))!,k:::7	
))!,.@AAA	

u---))!,n===	

'9:::))!,k:::::rc|tdd|jd<t}|t|ddd|jd<t}||ddd|jd<t}|t|d	d
d|jd<t}||d	dd|jd
<t}|t|dd
d|jd
<t}||dddS)N)NNNs#gcc (GCC) 3.4.5 (mingw special)
FSFgccrz3.4.5svery strange outputsGNU ld version 2.17.50 20060824ldz2.17.50s@(#)PROGRAM:ld  PROJECT:ld64-77s GNU dllwrap 2.17.50 20060824
FSFdllwrapsCheese Wrap)rCr	rstr)rress  rtest_get_versionsz)CygwinCCompilerTestCase.test_get_versionsSs[	
);<<<D
5nnSVg...
3
5nnQ&&&>
4nnSVi000=
4nnQ&&&!E
9nnSVi000 .
9nnQ&&&&&rc2dt_|tddt_|tdgdt_|tdgdt_|tdgdt_|td	gd
t_|t
tdS)NrAzF2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1300 32 bits (Intel)]msvcr70zF2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bits (Intel)]msvcr71zF2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1400 32 bits (Intel)]msvcr80zF2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1500 32 bits (Intel)]msvcr90zF2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1999 32 bits (Intel)])r(r)rCr
assertRaises
ValueErrorr=s rtest_get_msvcrz&CygwinCCompilerTestCase.test_get_msvcrusJd+++6yk2226yk2226yk2226yk2226*i00000r)rrrr'r:r1r4rErNrV
__classcell__)r8s@rr"r"s*****88888
;;;. ' ' 'D1111111rr"__main__)__doc__unittestr(riorr.rdistutils.cygwinccompilerrrrrr	r
distutils.testsrobjectr
TempdirManagerTestCaser"rmainr rr<module>rbs:**



				%%%%%%2222222222222222$#####
-
-
-
-
-
-
-
-x1x1x1x1x1g4&/x1x1x1tzHMOOOOOr