From 08f3761c19825414ef0d33f584a667444ccb5523 Mon Sep 17 00:00:00 2001 From: PJ Eby Date: Fri, 2 Mar 2007 01:23:32 +0000 Subject: 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 --- setuptools/command/test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'setuptools/command/test.py') diff --git a/setuptools/command/test.py b/setuptools/command/test.py index fe024c60..f8a1169f 100644 --- a/setuptools/command/test.py +++ b/setuptools/command/test.py @@ -96,6 +96,7 @@ class test(Command): try: sys.path.insert(0, normalize_path(ei_cmd.egg_base)) working_set.__init__() + add_activation_listener(lambda dist: dist.activate()) require('%s==%s' % (ei_cmd.egg_name, ei_cmd.egg_version)) func() finally: @@ -120,7 +121,6 @@ class test(Command): - def run_tests(self): import unittest loader_ep = EntryPoint.parse("x="+self.test_loader) -- cgit v1.2.3