don't attempt to collect stats from ContextSuite instances

This commit is contained in:
Jason Kölker 2012-01-04 20:10:44 -06:00
parent 36cd37575e
commit c2ecda529d
1 changed files with 4 additions and 0 deletions

View File

@ -9,6 +9,7 @@ import time
import colorama
import termcolor
from nose import plugins
from nose import suite
log = logging.getLogger("openstack.nose")
@ -195,6 +196,9 @@ class Openstack(plugins.Plugin):
self.stream.writeln()
def startTest(self, test):
if isinstance(test, suite.ContextSuite):
return
cls, name = self._get_name(test)
if self.show_all:
if cls != self._cls: