✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ beluga.o2switch.net ​🇻​♯➤ 4.18.0-553.123.2.lve.el8.x86_64 #1 SMP 🇾​♯➤ 2026

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 185.154.139.77 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.216.84
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗙𝗙 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ 𝗔𝗟𝗟 𝗪𝗢𝗥𝗞𝗜𝗡𝗚....

𝗛𝗢𝗠𝗘
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /opt/alt/python310/lib64/python3.10/distutils/tests//test_msvccompiler.py
"""Tests for distutils._msvccompiler."""
import sys
import unittest
import os

from distutils.errors import DistutilsPlatformError
from distutils.tests import support
from test.support import run_unittest


SKIP_MESSAGE = (None if sys.platform == "win32" else
                "These tests are only for win32")

@unittest.skipUnless(SKIP_MESSAGE is None, SKIP_MESSAGE)
class msvccompilerTestCase(support.TempdirManager,
                            unittest.TestCase):

    def test_no_compiler(self):
        import distutils._msvccompiler as _msvccompiler
        # makes sure query_vcvarsall raises
        # a DistutilsPlatformError if the compiler
        # is not found
        def _find_vcvarsall(plat_spec):
            return None, None

        old_find_vcvarsall = _msvccompiler._find_vcvarsall
        _msvccompiler._find_vcvarsall = _find_vcvarsall
        try:
            self.assertRaises(DistutilsPlatformError,
                              _msvccompiler._get_vc_env,
                             'wont find this version')
        finally:
            _msvccompiler._find_vcvarsall = old_find_vcvarsall

    def test_get_vc_env_unicode(self):
        import distutils._msvccompiler as _msvccompiler

        test_var = 'ṰḖṤṪ┅ṼẨṜ'
        test_value = '₃⁴₅'

        # Ensure we don't early exit from _get_vc_env
        old_distutils_use_sdk = os.environ.pop('DISTUTILS_USE_SDK', None)
        os.environ[test_var] = test_value
        try:
            env = _msvccompiler._get_vc_env('x86')
            self.assertIn(test_var.lower(), env)
            self.assertEqual(test_value, env[test_var.lower()])
        finally:
            os.environ.pop(test_var)
            if old_distutils_use_sdk:
                os.environ['DISTUTILS_USE_SDK'] = old_distutils_use_sdk

    def test_get_vc2017(self):
        import distutils._msvccompiler as _msvccompiler

        # This function cannot be mocked, so pass it if we find VS 2017
        # and mark it skipped if we do not.
        version, path = _msvccompiler._find_vc2017()
        if version:
            self.assertGreaterEqual(version, 15)
            self.assertTrue(os.path.isdir(path))
        else:
            raise unittest.SkipTest("VS 2017 is not installed")

    def test_get_vc2015(self):
        import distutils._msvccompiler as _msvccompiler

        # This function cannot be mocked, so pass it if we find VS 2015
        # and mark it skipped if we do not.
        version, path = _msvccompiler._find_vc2015()
        if version:
            self.assertGreaterEqual(version, 14)
            self.assertTrue(os.path.isdir(path))
        else:
            raise unittest.SkipTest("VS 2015 is not installed")

def test_suite():
    return unittest.makeSuite(msvccompilerTestCase)

if __name__ == "__main__":
    run_unittest(test_suite())


Current_dir [ 𝗡𝗢𝗧 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
3 Sep 2026 4.09 AM
root / linksafe
0755
__pycache__
--
3 Sep 2026 4.11 AM
root / linksafe
0755
Setup.sample
2.196 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
__init__.py
1.352 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
includetest.rst
0.024 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
support.py
6.338 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_archive_util.py
14.038 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_bdist.py
1.723 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_bdist_dumb.py
2.837 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_bdist_msi.py
0.823 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_bdist_rpm.py
4.895 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_build.py
1.919 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_build_clib.py
4.798 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_build_ext.py
20.341 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_build_py.py
6.187 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_build_scripts.py
3.509 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_check.py
5.577 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_clean.py
1.407 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_cmd.py
3.745 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_config.py
3.801 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_config_cmd.py
3.124 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_core.py
3.984 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_cygwinccompiler.py
5.504 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_dep_util.py
2.754 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_dir_util.py
4.545 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_dist.py
18.666 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_extension.py
2.742 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_file_util.py
4.344 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_filelist.py
11.2 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_install.py
8.773 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_install_data.py
2.517 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_install_headers.py
1.209 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_install_lib.py
3.881 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_install_scripts.py
2.563 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_log.py
1.82 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_msvc9compiler.py
5.896 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_msvccompiler.py
2.778 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_register.py
9.575 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_sdist.py
16.687 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_spawn.py
5.303 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_sysconfig.py
10.859 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_text_file.py
3.355 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_unixccompiler.py
4.716 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_upload.py
6.97 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_util.py
11.339 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_version.py
3.369 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
test_versionpredicate.py
0.273 KB
12 Aug 2026 11.03 PM
root / linksafe
0644
xxmodule.c
12.561 KB
12 Aug 2026 11.03 PM
root / linksafe
0644

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF