don't attempt to collect stats from ContextSuite instances
This commit is contained in:
parent
36cd37575e
commit
c2ecda529d
|
@ -9,6 +9,7 @@ import time
|
||||||
import colorama
|
import colorama
|
||||||
import termcolor
|
import termcolor
|
||||||
from nose import plugins
|
from nose import plugins
|
||||||
|
from nose import suite
|
||||||
|
|
||||||
|
|
||||||
log = logging.getLogger("openstack.nose")
|
log = logging.getLogger("openstack.nose")
|
||||||
|
@ -195,6 +196,9 @@ class Openstack(plugins.Plugin):
|
||||||
self.stream.writeln()
|
self.stream.writeln()
|
||||||
|
|
||||||
def startTest(self, test):
|
def startTest(self, test):
|
||||||
|
if isinstance(test, suite.ContextSuite):
|
||||||
|
return
|
||||||
|
|
||||||
cls, name = self._get_name(test)
|
cls, name = self._get_name(test)
|
||||||
if self.show_all:
|
if self.show_all:
|
||||||
if cls != self._cls:
|
if cls != self._cls:
|
||||||
|
|
Loading…
Reference in New Issue