parent
f5308aba2d
commit
309f3e2cec
|
@ -25,6 +25,7 @@ The is a schematic example of a tree of collectors and test items::
|
|||
"""
|
||||
from __future__ import generators
|
||||
import py
|
||||
from py.__.test.outcome import Skipped, Failed, Passed
|
||||
|
||||
def configproperty(name):
|
||||
def fget(self):
|
||||
|
@ -203,7 +204,7 @@ class Collector(object):
|
|||
try:
|
||||
self._skipbykeyword(keyword)
|
||||
yield self
|
||||
except py.test.Item.Skipped:
|
||||
except Skipped:
|
||||
if reporterror is not None:
|
||||
excinfo = py.code.ExceptionInfo()
|
||||
reporterror((excinfo, self))
|
||||
|
|
|
@ -5,6 +5,7 @@ Node code for slaves.
|
|||
import py
|
||||
from py.__.test.rsession.executor import RunExecutor, BoxExecutor, AsyncExecutor
|
||||
from py.__.test.rsession.outcome import Outcome
|
||||
from py.__.test.outcome import Skipped
|
||||
import thread
|
||||
import os
|
||||
|
||||
|
@ -90,7 +91,7 @@ def slave_main(receive, send, path, config, pidinfo):
|
|||
try:
|
||||
node = getnode(nextitem)
|
||||
res = node.run(nextitem)
|
||||
except py.test.Item.Skipped, s:
|
||||
except Skipped, s:
|
||||
send(Outcome(skipped=str(s)).make_repr())
|
||||
except:
|
||||
excinfo = py.code.ExceptionInfo()
|
||||
|
|
Loading…
Reference in New Issue