Your IP : 216.73.216.213


Current Path : /opt/alt/python33/lib64/python3.3/distutils/tests/__pycache__/
Upload File :
Current File : //opt/alt/python33/lib64/python3.3/distutils/tests/__pycache__/test_cygwinccompiler.cpython-33.pyo

�
��f'c@sdZddlZddlZddlZddlmZddlZddlmZddl	m
Z
ddlmZm
Z
mZmZmZmZmZddlmZGdd	�d	e�ZGd
d�dejej�Zdd
�Zedkree��ndS(u$Tests for distutils.cygwinccompiler.iN(uBytesIO(urun_unittest(ucygwinccompiler(uCygwinCCompilerucheck_config_huCONFIG_H_OKuCONFIG_H_NOTOKuCONFIG_H_UNCERTAINuget_versionsu	get_msvcr(usupportcBs&|EeZdZdZdd�ZdS(u	FakePopencCs`|j�d|_|jj}|j|krGt||j�|_ntj|d�|_dS(Niur(usplitucmdu
test_classu_exesuBytesIOustdoutuosupopen(uselfucmdushellustdoutuexes((uI/opt/alt/python33/lib64/python3.3/distutils/tests/test_cygwinccompiler.pyu__init__s
uFakePopen.__init__N(u__name__u
__module__u__qualname__uNoneu
test_classu__init__(u
__locals__((uI/opt/alt/python33/lib64/python3.3/distutils/tests/test_cygwinccompiler.pyu	FakePopensu	FakePopencst|EeZdZ�fdd�Z�fdd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	�S(uCygwinCCompilerTestCasecs�tt|�j�tj|_tjj|j�d�|_	ddl
m}|j|_
|j|_tj|_|jt_i|_tj|_|t_tt_dS(Nupython.hi(u	sysconfig(usuperuCygwinCCompilerTestCaseusetUpusysuversionuosupathujoinumkdtempupython_hu	distutilsu	sysconfiguget_config_h_filenameuold_get_config_h_filenameu_get_config_h_filenameucygwinccompilerufind_executableuold_find_executableu_find_executableu_exesuPopenu	old_popenu	FakePopenu
test_class(uselfu	sysconfig(u	__class__(uI/opt/alt/python33/lib64/python3.3/distutils/tests/test_cygwinccompiler.pyusetUp s		uCygwinCCompilerTestCase.setUpcsW|jt_ddlm}|j|_|jt_|j	t_
tt|�j
�dS(Ni(u	sysconfig(uversionusysu	distutilsu	sysconfiguold_get_config_h_filenameuget_config_h_filenameuold_find_executableucygwinccompilerufind_executableu	old_popenuPopenusuperuCygwinCCompilerTestCaseutearDown(uselfu	sysconfig(u	__class__(uI/opt/alt/python33/lib64/python3.3/distutils/tests/test_cygwinccompiler.pyutearDown.su CygwinCCompilerTestCase.tearDowncCs|jS(N(upython_h(uself((uI/opt/alt/python33/lib64/python3.3/distutils/tests/test_cygwinccompiler.pyu_get_config_h_filename6su.CygwinCCompilerTestCase._get_config_h_filenamecCs||jkr|SdS(N(u_exesuNone(uselfuname((uI/opt/alt/python33/lib64/python3.3/distutils/tests/test_cygwinccompiler.pyu_find_executable9su(CygwinCCompilerTestCase._find_executablecCs�dt_|jt�dt�dt_|jt�dt�|j|jd�|jt�dt�|j|jd�|jt�dt�dS(NuX2.6.1 (r261:67515, Dec  6 2008, 16:42:21) 
[GCC 4.0.1 (Apple Computer, Inc. build 5370)]iusomething without the *CC worduxxxuxxx __GNUC__ xxx(	usysuversionuassertEqualucheck_config_huCONFIG_H_OKuCONFIG_H_UNCERTAINu
write_fileupython_huCONFIG_H_NOTOK(uself((uI/opt/alt/python33/lib64/python3.3/distutils/tests/test_cygwinccompiler.pyutest_check_config_h>s		u+CygwinCCompilerTestCase.test_check_config_hcCs%|jt�d�d|jd<t�}|jt|d�d�d|jd<t�}|j|dd�d|jd<t�}|jt|d�d	�d
|jd<t�}|j|dd�d|jd<t�}|jt|d
�d	�d|jd<t�}|j|d
d�dS(Ns#gcc (GCC) 3.4.5 (mingw special)
FSFugcciu3.4.5svery strange outputsGNU ld version 2.17.50 20060824uldiu2.17.50s@(#)PROGRAM:ld  PROJECT:ld64-77s GNU dllwrap 2.17.50 20060824
FSFudllwrapisCheese Wrap(NNN(uassertEqualuget_versionsuNoneu_exesustr(uselfures((uI/opt/alt/python33/lib64/python3.3/distutils/tests/test_cygwinccompiler.pyutest_get_versionsUs&
	
	
	
	
	
	u)CygwinCCompilerTestCase.test_get_versionscCs�dt_|jt�d�dt_|jt�dg�dt_|jt�dg�dt_|jt�dg�dt_|jt�d	g�d
t_|jtt�dS(NuX2.6.1 (r261:67515, Dec  6 2008, 16:42:21) 
[GCC 4.0.1 (Apple Computer, Inc. build 5370)]uF2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1300 32 bits (Intel)]umsvcr70uF2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bits (Intel)]umsvcr71uF2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1400 32 bits (Intel)]umsvcr80uF2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1500 32 bits (Intel)]umsvcr90uF2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1999 32 bits (Intel)](usysuversionuassertEqualu	get_msvcruNoneuassertRaisesu
ValueError(uself((uI/opt/alt/python33/lib64/python3.3/distutils/tests/test_cygwinccompiler.pyutest_get_msvcrws						u&CygwinCCompilerTestCase.test_get_msvcr(
u__name__u
__module__u__qualname__usetUputearDownu_get_config_h_filenameu_find_executableutest_check_config_hutest_get_versionsutest_get_msvcr(u
__locals__((u	__class__uI/opt/alt/python33/lib64/python3.3/distutils/tests/test_cygwinccompiler.pyuCygwinCCompilerTestCases"uCygwinCCompilerTestCasecCs
tjt�S(N(uunittestu	makeSuiteuCygwinCCompilerTestCase(((uI/opt/alt/python33/lib64/python3.3/distutils/tests/test_cygwinccompiler.pyu
test_suite�su
test_suiteu__main__(u__doc__uunittestusysuosuiouBytesIOu
subprocessutest.supporturun_unittestu	distutilsucygwinccompilerudistutils.cygwinccompileruCygwinCCompilerucheck_config_huCONFIG_H_OKuCONFIG_H_NOTOKuCONFIG_H_UNCERTAINuget_versionsu	get_msvcrudistutils.testsusupportuobjectu	FakePopenuTempdirManageruTestCaseuCygwinCCompilerTestCaseu
test_suiteu__name__(((uI/opt/alt/python33/lib64/python3.3/distutils/tests/test_cygwinccompiler.pyu<module>s4
y