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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: recipe_engine/third_party/setuptools/tests/test_build_ext.py
diff --git a/recipe_engine/third_party/setuptools/tests/test_build_ext.py b/recipe_engine/third_party/setuptools/tests/test_build_ext.py
new file mode 100644
index 0000000000000000000000000000000000000000..a92e53ae26a245730a04613c2ba87560e3ddcf64
--- /dev/null
+++ b/recipe_engine/third_party/setuptools/tests/test_build_ext.py
@@ -0,0 +1,19 @@
+"""build_ext tests
+"""
+import unittest
+from distutils.command.build_ext import build_ext as distutils_build_ext
+from setuptools.command.build_ext import build_ext
+from setuptools.dist import Distribution
+
+class TestBuildExtTest(unittest.TestCase):
+
+ def test_get_ext_filename(self):
+ # setuptools needs to give back the same
+ # result than distutils, even if the fullname
+ # is not in ext_map
+ dist = Distribution()
+ cmd = build_ext(dist)
+ cmd.ext_map['foo/bar'] = ''
+ res = cmd.get_ext_filename('foo')
+ wanted = distutils_build_ext.get_ext_filename(cmd, 'foo')
+ assert res == wanted

Powered by Google App Engine
This is Rietveld 408576698