code: def test_no_compiler(self):
      # makes sure query_vcvarsall raises
      # a DistutilsPlatformError if the compiler
      # is not found
      from distutils.msvc9compiler import query_vcvarsall
  
      def _find_vcvarsall(version):
          return None
  
      from distutils import msvc9compiler
  
      old_find_vcvarsall = msvc9compiler.find_vcvarsall
      msvc9compiler.find_vcvarsall = _find_vcvarsall
      try:
          self.assertRaises(
              DistutilsPlatformError,
              query_vcvarsall,
              "wont find this version",
          )
      finally:
          msvc9compiler.find_vcvarsall = old_find_vcvarsall
  
file_path: catboost/contrib/tools/python/src/Lib/distutils/tests/test_msvc9compiler.py
imports: import sys
  import unittest
  import os
  from distutils.errors import DistutilsPlatformError
  from distutils.tests import support
  from test.test_support import run_unittest
label_desc: Use image node_id 1 for calling the msvc9compilerTestCase obj's underlying member method code with example usage: obj.test_no_compiler() and returns: None