aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/tests/test_msvc9compiler.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2014-09-26 18:47:55 -0400
committerJason R. Coombs <jaraco@jaraco.com>2014-09-26 18:47:55 -0400
commitdfa59bff40dce47c485cdba1f28d1a8908e7e2be (patch)
tree09c1d1258cbd4f8345f17e1ff1602498a9d33491 /setuptools/tests/test_msvc9compiler.py
parent57ff99e246a2fdb3d59e7aa977fe3b1e00924c99 (diff)
downloadexternal_python_setuptools-dfa59bff40dce47c485cdba1f28d1a8908e7e2be.tar.gz
external_python_setuptools-dfa59bff40dce47c485cdba1f28d1a8908e7e2be.tar.bz2
external_python_setuptools-dfa59bff40dce47c485cdba1f28d1a8908e7e2be.zip
Skip tests if msvc9compiler isn't available.
Diffstat (limited to 'setuptools/tests/test_msvc9compiler.py')
-rw-r--r--setuptools/tests/test_msvc9compiler.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/setuptools/tests/test_msvc9compiler.py b/setuptools/tests/test_msvc9compiler.py
index 8f71c3d5..99afb10e 100644
--- a/setuptools/tests/test_msvc9compiler.py
+++ b/setuptools/tests/test_msvc9compiler.py
@@ -12,8 +12,6 @@ import tempfile
import unittest
import distutils.errors
-import distutils.msvc9compiler
-
# importing only setuptools should apply the patch
__import__('setuptools')
@@ -63,6 +61,10 @@ class MockReg:
class TestMSVC9Compiler(unittest.TestCase):
def test_find_vcvarsall_patch(self):
+ if not hasattr(distutils, 'msvc9compiler'):
+ # skip
+ return
+
self.assertEqual(
"setuptools.extension",
distutils.msvc9compiler.find_vcvarsall.__module__,