summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Pellerin <jpellerin@gmail.com>2009-02-21 17:42:56 +0000
committerJason Pellerin <jpellerin@gmail.com>2009-02-21 17:42:56 +0000
commit3b288b42f41d4662be82cafbd883a23e3e6212e9 (patch)
tree6f9195ab819a74ef76d4cfbf487c252a1381ad47
parent22d020ce4c2271500cb91ca9a678c73944ac064a (diff)
downloadnose-3b288b42f41d4662be82cafbd883a23e3e6212e9.tar.gz
Fixed issue 237 (patch from pjenvey)
-rw-r--r--nose/suite.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/nose/suite.py b/nose/suite.py
index dc46f92..29331af 100644
--- a/nose/suite.py
+++ b/nose/suite.py
@@ -265,7 +265,7 @@ class ContextSuite(LazySuite):
else:
names = self.moduleSetup
if hasattr(context, '__path__'):
- names += names
+ names = self.packageSetup + names
try_run(context, names)
def shortDescription(self):
@@ -317,7 +317,7 @@ class ContextSuite(LazySuite):
else:
names = self.moduleTeardown
if hasattr(context, '__path__'):
- names += names
+ names = self.packageTeardown + names
try_run(context, names)
self.config.plugins.stopContext(context)