Commit dfa59bff authored by Jason R. Coombs's avatar Jason R. Coombs

Skip tests if msvc9compiler isn't available.

parent 57ff99e2
......@@ -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__,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment