diff options
-rw-r--r-- | setuptools/tests/test_sdist.py | 18 |
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__) |