summaryrefslogtreecommitdiff
path: root/nose
diff options
context:
space:
mode:
authorBuck Golemon <workitharder@gmail.com>2011-04-30 20:28:50 -0700
committerBuck Golemon <workitharder@gmail.com>2011-04-30 20:28:50 -0700
commitd5267283f8f4ca7df32fe06612515709a0062ed2 (patch)
tree19e6a3a90459e62f18b36a3cc0a7bf5ae1e43ef8 /nose
parent41aaaeb50725df8cc1962e8e6bc49d852f74ed85 (diff)
downloadnose-d5267283f8f4ca7df32fe06612515709a0062ed2.tar.gz
fix for TypeError: unbound method address() must be called with Failure instance as first argument (got nothing instead)
Diffstat (limited to 'nose')
-rw-r--r--nose/plugins/multiprocess.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/nose/plugins/multiprocess.py b/nose/plugins/multiprocess.py
index edf948a..1050818 100644
--- a/nose/plugins/multiprocess.py
+++ b/nose/plugins/multiprocess.py
@@ -293,7 +293,11 @@ class MultiProcessTestRunner(TextTestRunner):
case(result) # run here to capture the failure
continue
# handle shared fixtures
- if isinstance(case, ContextSuite) and self.sharedFixtures(case):
+ if isinstance(case, ContextSuite) and case.context is failure.Failure:
+ log.debug("Case is a Failure")
+ case(result) # run here to capture the failure
+ continue
+ elif isinstance(case, ContextSuite) and self.sharedFixtures(case):
log.debug("%s has shared fixtures", case)
try:
case.setUp()