Index: Lib/distutils/tests/test_msvc9compiler.py =================================================================== --- Lib/distutils/tests/test_msvc9compiler.py (revision 82951) +++ Lib/distutils/tests/test_msvc9compiler.py (working copy) @@ -109,6 +109,11 @@ self.assertTrue('Desktop' in keys) def test_remove_visual_c_ref(self): + from distutils.msvccompiler import get_build_version + if get_build_version() < 8.0: + # this test is only for MSVC8.0 or above + return + from distutils.msvc9compiler import MSVCCompiler tempdir = self.mkdtemp() manifest = os.path.join(tempdir, 'manifest')