diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2014-09-26 18:30:14 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2014-09-26 18:30:14 -0400 |
commit | e87ba1aa48bb891bb29704d321754623956fef44 (patch) | |
tree | fa7d7193a4debe7754096ba5f8fb56c57e16b890 /setuptools/tests/test_msvc9compiler.py | |
parent | d195bc900beccb22c8de243416c40564ea28402f (diff) | |
download | external_python_setuptools-e87ba1aa48bb891bb29704d321754623956fef44.tar.gz external_python_setuptools-e87ba1aa48bb891bb29704d321754623956fef44.tar.bz2 external_python_setuptools-e87ba1aa48bb891bb29704d321754623956fef44.zip |
Move stable import into stdlib imports section
Diffstat (limited to 'setuptools/tests/test_msvc9compiler.py')
-rw-r--r-- | setuptools/tests/test_msvc9compiler.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/tests/test_msvc9compiler.py b/setuptools/tests/test_msvc9compiler.py index 3a2ef970..74b5220b 100644 --- a/setuptools/tests/test_msvc9compiler.py +++ b/setuptools/tests/test_msvc9compiler.py @@ -10,6 +10,7 @@ import shutil import sys import tempfile import unittest +import distutils.errors try: from winreg import HKEY_CURRENT_USER, HKEY_LOCAL_MACHINE @@ -17,7 +18,6 @@ except ImportError: from _winreg import HKEY_CURRENT_USER, HKEY_LOCAL_MACHINE import distutils.msvc9compiler -from distutils.errors import DistutilsPlatformError # importing only setuptools should apply the patch __import__('setuptools') @@ -84,7 +84,7 @@ class TestMSVC9Compiler(unittest.TestCase): try: query_vcvarsall(9.0) self.fail('Expected DistutilsPlatformError from query_vcvarsall()') - except DistutilsPlatformError: + except distutils.errors.DistutilsPlatformError: exc_message = str(sys.exc_info()[1]) self.assertIn('aka.ms/vcpython27', exc_message) finally: |