[svn r37862] Move Skipped/Failed/Passed out of public namespace

--HG--
branch : trunk
This commit is contained in:
fijal
2007-02-03 13:14:46 +01:00
parent 2fe1fa07ff
commit 9b62f2290c
15 changed files with 99 additions and 79 deletions
+3 -2
View File
@@ -1,6 +1,7 @@
import py
from inspect import isclass, ismodule
from py.__.test.outcome import Skipped, Failed, Passed
_dummy = object()
@@ -101,10 +102,10 @@ class Function(Item):
def skip(msg="unknown reason"):
""" skip with the given Message. """
__tracebackhide__ = True
raise py.test.Item.Skipped(msg=msg)
raise Skipped(msg=msg)
def fail(msg="unknown failure"):
""" fail with the given Message. """
__tracebackhide__ = True
raise py.test.Item.Failed(msg=msg)
raise Failed(msg=msg)