summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--TODO14
-rw-r--r--nose/suite.py5
2 files changed, 5 insertions, 14 deletions
diff --git a/TODO b/TODO
index 0569d1b..6586e73 100644
--- a/TODO
+++ b/TODO
@@ -45,20 +45,6 @@ BUGS
sqlalchemy.sql._FunctionGateway, which doesn't match testmatch and
isn't a testcase subclass -- need to look into it further.
--- incorrectly defined test class generator method causes failure of whole
- test run:
-
- _TextTestResult.printErrors(self)
- File "unittest.py", line 667, in printErrors
- self.printErrorList('ERROR', self.errors)
- File "unittest.py", line 673, in printErrorList
- self.stream.writeln("%s: %s" % (flavour,self.getDescription(test)))
- File "unittest.py", line 633, in getDescription
- return test.shortDescription() or str(test)
-AttributeError: 'ContextSuite' object has no attribute 'shortDescription'
-
-need to add shortDescription() to suite?
-
2.3 COMPAT
diff --git a/nose/suite.py b/nose/suite.py
index cf6727b..65924d2 100644
--- a/nose/suite.py
+++ b/nose/suite.py
@@ -198,6 +198,11 @@ class ContextSuite(LazySuite):
'setUpPackage') + names
try_run(context, names)
+ def shortDescription(self):
+ if self.context is None:
+ return "test suite"
+ return "test suite for %s" % self.context
+
def tearDown(self):
log.debug('context teardown')
if not self.was_setup or self.was_torndown: