root / env / lib / python2.7 / site-packages / distribute-0.6.19-py2.7.egg / setuptools / tests / test_build_ext.py @ 1a305335
History | View | Annotate | Download (673 Bytes)
1 |
"""build_ext tests
|
---|---|
2 |
"""
|
3 |
import os, shutil, tempfile, unittest |
4 |
from distutils.command.build_ext import build_ext as distutils_build_ext |
5 |
from setuptools.command.build_ext import build_ext |
6 |
from setuptools.dist import Distribution |
7 |
|
8 |
class TestBuildExtTest(unittest.TestCase): |
9 |
|
10 |
def test_get_ext_filename(self): |
11 |
# setuptools needs to give back the same
|
12 |
# result than distutils, even if the fullname
|
13 |
# is not in ext_map
|
14 |
dist = Distribution() |
15 |
cmd = build_ext(dist) |
16 |
cmd.ext_map['foo/bar'] = '' |
17 |
res = cmd.get_ext_filename('foo')
|
18 |
wanted = distutils_build_ext.get_ext_filename(cmd, 'foo')
|
19 |
assert res == wanted
|
20 |
|