summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>2010-09-12 22:55:40 (GMT)
committerHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>2010-09-12 22:55:40 (GMT)
commitf28f0d92cd3f7c75450a22a93683395fea95623d (patch)
tree807ee696cb8ee444d7f51f238cbfd31faa7ae9d0
parentfeb7307db4b4582af9ac01719f7df651c2eed077 (diff)
downloadcpython-f28f0d92cd3f7c75450a22a93683395fea95623d.zip
cpython-f28f0d92cd3f7c75450a22a93683395fea95623d.tar.gz
cpython-f28f0d92cd3f7c75450a22a93683395fea95623d.tar.bz2
Issue #9313: Skips test_remove_visual_c_ref on old MSVC.
-rw-r--r--Lib/distutils/tests/test_msvc9compiler.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/distutils/tests/test_msvc9compiler.py b/Lib/distutils/tests/test_msvc9compiler.py
index 8a908d9..39e2c11 100644
--- a/Lib/distutils/tests/test_msvc9compiler.py
+++ b/Lib/distutils/tests/test_msvc9compiler.py
@@ -109,6 +109,11 @@ class msvc9compilerTestCase(support.TempdirManager,
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')