Plan 9 from Bell Labs’s /usr/web/sources/contrib/jas/root/sys/lib/python2.7/distutils/tests/test_msvc9compiler.pyo

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


��Qc@sdZddlZddlZddlZddlmZddlmZddlm	Z	dZ
dZdZej
d	kr�dd
lmZe�dkr�dZq�dZnd
Zejedke�dejejfd��Y�Zd�Zedkre	e��ndS(s"Tests for distutils.msvc9compiler.i�N(tDistutilsPlatformError(tsupport(trun_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_vcvarsalltassertRaisesR(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|dk�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�(tMSVCCompilertmanifesttws
(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.msvccompilerRRtSKIP_MESSAGEt
skipUnlesstTempdirManagertTestCaseRR>R:(((s8/sys/lib/python2.7/distutils/tests/test_msvc9compiler.pyt<module>s* 		L	

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.