aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2015-01-01 17:35:05 -0500
committerJason R. Coombs <jaraco@jaraco.com>2015-01-01 17:35:05 -0500
commit903c0d6a3bda96a0b193cc6efd2f8e868d4d82e2 (patch)
tree1064d8637d4ccc5267f77f73adb76d5c4826543f
parent0003313ff59f74efe21893a7278c5e89ba58afea (diff)
downloadexternal_python_setuptools-903c0d6a3bda96a0b193cc6efd2f8e868d4d82e2.tar.gz
external_python_setuptools-903c0d6a3bda96a0b193cc6efd2f8e868d4d82e2.tar.bz2
external_python_setuptools-903c0d6a3bda96a0b193cc6efd2f8e868d4d82e2.zip
Use namespacing for easier reading
-rw-r--r--setuptools/tests/test_build_ext.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/setuptools/tests/test_build_ext.py b/setuptools/tests/test_build_ext.py
index a92e53ae..32e4ad40 100644
--- a/setuptools/tests/test_build_ext.py
+++ b/setuptools/tests/test_build_ext.py
@@ -1,7 +1,8 @@
"""build_ext tests
"""
import unittest
-from distutils.command.build_ext import build_ext as distutils_build_ext
+import distutils.command.build_ext as orig
+
from setuptools.command.build_ext import build_ext
from setuptools.dist import Distribution
@@ -15,5 +16,5 @@ class TestBuildExtTest(unittest.TestCase):
cmd = build_ext(dist)
cmd.ext_map['foo/bar'] = ''
res = cmd.get_ext_filename('foo')
- wanted = distutils_build_ext.get_ext_filename(cmd, 'foo')
+ wanted = orig.build_ext.get_ext_filename(cmd, 'foo')
assert res == wanted