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 | 0da7d247f66c5874465a6bc1302179c385ff6de2 (patch) | |
tree | d9dcfdeaeb82f1979570e086c1514d454a44639c | |
parent | 1656cae2182a86037c1981216cc7ad6c04d49fd1 (diff) | |
download | python-setuptools-bitbucket-0da7d247f66c5874465a6bc1302179c385ff6de2.tar.gz |
Move stable import into stdlib imports section
-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: |