aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2014-12-31 09:52:20 -0500
committerJason R. Coombs <jaraco@jaraco.com>2014-12-31 09:52:20 -0500
commit54e96d8d8a6e18901d8e3e708fd0e82bfaba9569 (patch)
tree0225e72a69811c1f62d9904d1cf4326ea51aa15d
parent9875a7b2586d737ac4d2294044187e17e5533e35 (diff)
downloadexternal_python_setuptools-54e96d8d8a6e18901d8e3e708fd0e82bfaba9569.tar.gz
external_python_setuptools-54e96d8d8a6e18901d8e3e708fd0e82bfaba9569.tar.bz2
external_python_setuptools-54e96d8d8a6e18901d8e3e708fd0e82bfaba9569.zip
Add test capturing requirement. Ref #320.
-rw-r--r--setuptools/tests/test_sdist.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/setuptools/tests/test_sdist.py b/setuptools/tests/test_sdist.py
index bece76d2..090e7304 100644
--- a/setuptools/tests/test_sdist.py
+++ b/setuptools/tests/test_sdist.py
@@ -11,6 +11,7 @@ import unicodedata
import contextlib
from setuptools.tests.py26compat import skipIf
+import pkg_resources
from setuptools.compat import StringIO, unicode, PY3, PY2
from setuptools.command.sdist import sdist
from setuptools.command.egg_info import manifest_maker
@@ -416,5 +417,22 @@ class TestSdistTest(unittest.TestCase):
self.assertFalse(filename in cmd.filelist.files)
+def test_default_revctrl():
+ """
+ When _default_revctrl was removed from the `setuptools.command.sdist`
+ module in 10.0, it broke some systems which keep an old install of
+ setuptools (Distribute) around. Those old versions require that the
+ setuptools package continue to implement that interface, so this
+ function provides that interface, stubbed. See #320 for details.
+
+ This interface must be maintained until Ubuntu 12.04 is no longer
+ supported (by Setuptools).
+ """
+ ep_def = 'svn_cvs = setuptools.command.sdist:_default_revctrl'
+ ep = pkg_resources.EntryPoint.parse(ep_def)
+ res = ep.load(require=False)
+ assert hasattr(res, '__iter__')
+
+
def test_suite():
return unittest.defaultTestLoader.loadTestsFromName(__name__)