[py-svn] r10734 - py/branch/py-collect/test

hpk at codespeak.net hpk at codespeak.net
Sat Apr 16 18:30:27 CEST 2005


Author: hpk
Date: Sat Apr 16 18:30:26 2005
New Revision: 10734

Modified:
   py/branch/py-collect/test/item.py
Log:
hide some details in tracebacks


Modified: py/branch/py-collect/test/item.py
==============================================================================
--- py/branch/py-collect/test/item.py	(original)
+++ py/branch/py-collect/test/item.py	Sat Apr 16 18:30:26 2005
@@ -88,6 +88,7 @@
 #
 def skip(msg="unknown reason", tbindex=-2):
     """ skip with the given Message. """
+    __tracebackhide__ = True
     raise py.test.Item.Skipped(msg=msg, tbindex=tbindex) 
 
 def skip_on_error(func, *args, **kwargs): 
@@ -101,5 +102,6 @@
 
 def fail(msg="unknown failure"):
     """ fail with the given Message. """
+    __tracebackhide__ = True
     raise py.test.Item.Failed(msg=msg, tbindex=-2)
 



More information about the pytest-commit mailing list