Commit 54e96d8d authored by Jason R. Coombs's avatar Jason R. Coombs

Add test capturing requirement. Ref #320.

parent 9875a7b2
......@@ -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__)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment