OLD | NEW |
(Empty) | |
| 1 """build_ext tests |
| 2 """ |
| 3 import 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 |
OLD | NEW |