aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/test.py
diff options
context:
space:
mode:
Diffstat (limited to 'setuptools/command/test.py')
-rw-r--r--setuptools/command/test.py2
1 files changed, 1 insertions, 1 deletions
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)