diff options
Diffstat (limited to 'setuptools/tests/__init__.py')
-rw-r--r-- | setuptools/tests/__init__.py | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/setuptools/tests/__init__.py b/setuptools/tests/__init__.py index 186310d..662d4ec 100644 --- a/setuptools/tests/__init__.py +++ b/setuptools/tests/__init__.py @@ -15,7 +15,12 @@ import sys, os.path def makeSetup(**args): """Return distribution from 'setup(**args)', without executing commands""" + distutils.core._setup_stop_after = "commandline" + + # Don't let system command line leak into tests! + args.setdefault('script_args',['install']) + try: return setuptools.setup(**args) finally: @@ -34,11 +39,6 @@ def makeSetup(**args): - - - - - class DependsTests(TestCase): def testExtractConst(self): @@ -80,6 +80,14 @@ class DependsTests(TestCase): get_module_constant('setuptools.tests','__doc__'),__doc__ ) + def testDependsCmd(self): + dist = makeSetup() + cmd = dist.get_command_obj('depends') + cmd.ensure_finalized() + self.assertEqual(cmd.temp, dist.get_command_obj('build').build_temp) + self.assertEqual(cmd.install_lib, dist.get_command_obj('install').install_lib) + + def testRequire(self): req = Require('Distutils','1.0.3','distutils') @@ -113,14 +121,6 @@ class DependsTests(TestCase): - - - - - - - - class DistroTests(TestCase): def setUp(self): |