aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/tests/test_msvc.py
diff options
context:
space:
mode:
authorJ. Goutin <JGoutin@users.noreply.github.com>2016-07-23 12:56:52 +0200
committerGitHub <noreply@github.com>2016-07-23 12:56:52 +0200
commit2b8cf28f3be32903b79e5b5b579fab38105791dd (patch)
tree2e72d7786a50c869eb8e20eca16aeb473d307bc9 /setuptools/tests/test_msvc.py
parent8a133bd9d91d7c40dabac05ad64f8a008f552f7c (diff)
downloadexternal_python_setuptools-2b8cf28f3be32903b79e5b5b579fab38105791dd.tar.gz
external_python_setuptools-2b8cf28f3be32903b79e5b5b579fab38105791dd.tar.bz2
external_python_setuptools-2b8cf28f3be32903b79e5b5b579fab38105791dd.zip
Exception will not raise
because MSVC9 may be find by new behavior at setuptools/msvc.py line 171.
Diffstat (limited to 'setuptools/tests/test_msvc.py')
-rw-r--r--setuptools/tests/test_msvc.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/setuptools/tests/test_msvc.py b/setuptools/tests/test_msvc.py
index 9b5ffba0..ad96752d 100644
--- a/setuptools/tests/test_msvc.py
+++ b/setuptools/tests/test_msvc.py
@@ -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):