��Qc@sdZddlZddlZddlZddlmZddlmZddlm Z dZ
dZdZej
d kr�dd
lmZe�dkr�dZq�dZnd
Zejedke�dejejfd��Y�Zd�Zedkre e��ndS(s"Tests for distutils.msvc9compiler.i�N(tDistutilsPlatformError(tsupport(trun_unittests�<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1"
manifestVersion="1.0">
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel level="asInvoker" uiAccess="false">
</requestedExecutionLevel>
</requestedPrivileges>
</security>
</trustInfo>
<dependency>
<dependentAssembly>
<assemblyIdentity type="win32" name="Microsoft.VC90.CRT"
version="9.0.21022.8" processorArchitecture="x86"
publicKeyToken="XXXX">
</assemblyIdentity>
</dependentAssembly>
</dependency>
</assembly>
s�<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1"
manifestVersion="1.0">
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel level="asInvoker" uiAccess="false">
</requestedExecutionLevel>
</requestedPrivileges>
</security>
</trustInfo>
<dependency>
<dependentAssembly>
<assemblyIdentity type="win32" name="Microsoft.VC90.CRT"
version="9.0.21022.8" processorArchitecture="x86"
publicKeyToken="XXXX">
</assemblyIdentity>
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly>
<assemblyIdentity type="win32" name="Microsoft.VC90.MFC"
version="9.0.21022.8" processorArchitecture="x86"
publicKeyToken="XXXX"></assemblyIdentity>
</dependentAssembly>
</dependency>
</assembly>
s�<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1"
manifestVersion="1.0">
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel level="asInvoker" uiAccess="false">
</requestedExecutionLevel>
</requestedPrivileges>
</security>
</trustInfo>
<dependency>
</dependency>
<dependency>
<dependentAssembly>
<assemblyIdentity type="win32" name="Microsoft.VC90.MFC"
version="9.0.21022.8" processorArchitecture="x86"
publicKeyToken="XXXX"></assemblyIdentity>
</dependentAssembly>
</dependency>
</assembly>twin32(tget_build_versiong @s)These tests are only for MSVC8.0 or abovesThese tests are only for win32tmsvc9compilerTestCasecBs,eZd�Zd�Zd�Zd�ZRS(cCscddlm}d�}ddlm}|j}||_z|jt|d�Wd||_XdS(Ni�(tquery_vcvarsallcSsdS(N(tNone(tversion((s8/sys/lib/python2.7/distutils/tests/test_msvc9compiler.pyt_find_vcvarsallos(t
msvc9compilerswont find this version(tdistutils.msvc9compilerRt distutilsR
tfind_vcvarsalltassertRaisesR(tselfRR R
told_find_vcvarsall((s8/sys/lib/python2.7/distutils/tests/test_msvc9compiler.pyttest_no_compilerjs cCs�ddlm}|jt|jdd�d}|j|d�}|j|dk�ddl}|j}|j|d �}|j |d�|j|d
�}|jd|k�dS(
Ni�(tRegtxxxsControl Panel\Desktopudragfullwindowsu0u1u2txxxxs
Control PaneltDesktop(u0u1u2(RRRtKeyErrort get_valuet
assertTruet_winregtHKEY_CURRENT_USERt read_keystassertEqualR(RRtpathtvRtHKCUtkeys((s8/sys/lib/python2.7/distutils/tests/test_msvc9compiler.pyttest_reg_class{s cCs�ddlm}|j�}tjj|d�}t|d�}z|jt�Wd|j �X|�}|j
|�t|�}z2djg|j�D]}|j�^q��}Wd|j �X|j
|t�dS(Ni�(tMSVCCompilertmanifesttws
(RR"tmkdtemptosRtjointopentwritet"_MANIFEST_WITH_MULTIPLE_REFERENCEStcloset_remove_visual_c_reft readlinestrstripRt_CLEANED_MANIFEST(RR"ttempdirR#tftcompilertlinetcontent((s8/sys/lib/python2.7/distutils/tests/test_msvc9compiler.pyttest_remove_visual_c_ref�s
2cCs�ddlm}|j�}tjj|d�}t|d�}z|jt�Wd|j �X|�}|j
|�}|j|d�dS(Ni�(R"R#R$(
RR"R%R&RR'R(R)t"_MANIFEST_WITH_ONLY_MSVC_REFERENCER+R,tassertIsR(RR"R0R#R1R2tgot((s8/sys/lib/python2.7/distutils/tests/test_msvc9compiler.pyttest_remove_entire_manifest�s (t__name__t
__module__RR!R5R9(((s8/sys/lib/python2.7/distutils/tests/test_msvc9compiler.pyRfs cCs
tjt�S(N(tunittestt makeSuiteR(((s8/sys/lib/python2.7/distutils/tests/test_msvc9compiler.pyt
test_suite�st__main__(t__doc__tsysR<R&tdistutils.errorsRtdistutils.testsRttest.test_supportRR6R*R/tplatformtdistutils.msvccompilerRRtSKIP_MESSAGEt
skipUnlesstTempdirManagertTestCaseRR>R:(((s8/sys/lib/python2.7/distutils/tests/test_msvc9compiler.pyt<module>s* L
|