diff options
Diffstat (limited to 'setuptools/tests/__init__.py')
| -rw-r--r-- | setuptools/tests/__init__.py | 53 |
1 files changed, 6 insertions, 47 deletions
diff --git a/setuptools/tests/__init__.py b/setuptools/tests/__init__.py index 7009b321..ea469446 100644 --- a/setuptools/tests/__init__.py +++ b/setuptools/tests/__init__.py @@ -13,6 +13,12 @@ from distutils.version import StrictVersion, LooseVersion from distutils.util import convert_path import sys, os.path +def additional_tests(): + import doctest + return doctest.DocFileSuite( + 'api_tests.txt', optionflags=doctest.ELLIPSIS, package='pkg_resources', + ) + def makeSetup(**args): """Return distribution from 'setup(**args)', without executing commands""" @@ -33,12 +39,6 @@ def makeSetup(**args): - - - - - - class DependsTests(TestCase): def testExtractConst(self): @@ -367,44 +367,3 @@ class TestCommandTests(TestCase): -def test_api(): - import doctest - return doctest.DocFileSuite( - 'api_tests.txt', optionflags=doctest.ELLIPSIS, package='pkg_resources', - ) - - -testClasses = (DependsTests, DistroTests, FeatureTests, TestCommandTests) -testNames = ["setuptools.tests.test_resources", "setuptools.tests.test_api"] - -def test_suite(): - return TestSuite( - [makeSuite(t,'test') for t in testClasses]+ - [defaultTestLoader.loadTestsFromName(n) for n in testNames] - ) - - - - - - - - - - - - - - - - - - - - - - - - - - |
