Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(42)

Side by Side Diff: recipe_engine/third_party/setuptools/tests/test_build_ext.py

Issue 1344583003: Recipe package system. (Closed) Base URL: git@github.com:luci/recipes-py.git@master
Patch Set: Recompiled proto Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698