aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/tests/__init__.py
diff options
context:
space:
mode:
authorPJ Eby <distutils-sig@python.org>2005-07-06 01:54:08 +0000
committerPJ Eby <distutils-sig@python.org>2005-07-06 01:54:08 +0000
commit3686c4d8453202853aa670f2693c7594db179c64 (patch)
tree9fd99e202840041d8df2eec64e8bdae9542eb815 /setuptools/tests/__init__.py
parent4a63bc6f16d3a4616edae1403f3c7bd67bdfa2f3 (diff)
downloadexternal_python_setuptools-3686c4d8453202853aa670f2693c7594db179c64.tar.gz
external_python_setuptools-3686c4d8453202853aa670f2693c7594db179c64.tar.bz2
external_python_setuptools-3686c4d8453202853aa670f2693c7594db179c64.zip
Enhanced the ``test`` command so that it doesn't install the package, but
instead builds any C extensions in-place, updates the ``.egg-info`` metadata, adds the source directory to ``sys.path``, and runs the tests directly on the source. This avoids an "unmanaged" installation of the package to ``site-packages`` or elsewhere. (Also, fix a breaking test of older dependency support; this should probably be removed altogether, as long as nobody's using it.) --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041078
Diffstat (limited to 'setuptools/tests/__init__.py')
-rw-r--r--setuptools/tests/__init__.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/setuptools/tests/__init__.py b/setuptools/tests/__init__.py
index 7db37888..06ca095d 100644
--- a/setuptools/tests/__init__.py
+++ b/setuptools/tests/__init__.py
@@ -122,19 +122,19 @@ class DependsTests(TestCase):
def testDependsCmd(self):
- path1 = convert_path('foo/bar/baz')
- path2 = convert_path('foo/bar/baz/spam')
+ path = convert_path('foo/bar/baz')
dist = makeSetup(
- extra_path='spam',
- script_args=['install','--install-lib',path1]
+ script_args=['install','--install-lib',path]
)
cmd = dist.get_command_obj('depends')
cmd.ensure_finalized()
self.assertEqual(cmd.temp, dist.get_command_obj('build').build_temp)
- self.assertEqual(cmd.search_path, [path2,path1]+sys.path)
+ self.assertEqual(cmd.search_path, [path+os.path.sep,path]+sys.path)
+
+