Commit 2b8cf28f authored by J. Goutin's avatar J. Goutin Committed by GitHub

Exception will not raise

because MSVC9 may be find by new behavior at setuptools/msvc.py line 171.
parent 8a133bd9
......@@ -83,10 +83,12 @@ class TestModulePatch:
with mock_reg():
assert find_vcvarsall(9.0) is None
expected = distutils.errors.DistutilsPlatformError
with pytest.raises(expected) as exc:
try:
query_vcvarsall(9.0)
assert 'aka.ms/vcpython27' in str(exc)
except Exception as exc:
expected = distutils.errors.DistutilsPlatformError
assert isinstance(expected, exc)
assert 'aka.ms/vcpython27' in str(exc)
@pytest.yield_fixture
def user_preferred_setting(self):
......
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