Commit 08f3761c authored by PJ Eby's avatar PJ Eby

Fix problem activating dependencies for tests (backport from trunk)

--HG--
branch : setuptools-0.6
extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4054072
parent 34eb083f
...@@ -96,6 +96,7 @@ class test(Command): ...@@ -96,6 +96,7 @@ class test(Command):
try: try:
sys.path.insert(0, normalize_path(ei_cmd.egg_base)) sys.path.insert(0, normalize_path(ei_cmd.egg_base))
working_set.__init__() working_set.__init__()
add_activation_listener(lambda dist: dist.activate())
require('%s==%s' % (ei_cmd.egg_name, ei_cmd.egg_version)) require('%s==%s' % (ei_cmd.egg_name, ei_cmd.egg_version))
func() func()
finally: finally:
...@@ -120,7 +121,6 @@ class test(Command): ...@@ -120,7 +121,6 @@ class test(Command):
def run_tests(self): def run_tests(self):
import unittest import unittest
loader_ep = EntryPoint.parse("x="+self.test_loader) loader_ep = EntryPoint.parse("x="+self.test_loader)
......
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