add a skip benchmark file (from issue400).
This commit is contained in:
parent
426907eafb
commit
dbfbc2b222
|
@ -193,7 +193,6 @@ def pytest_runtest_makereport(item, call):
|
|||
outcome = "passed"
|
||||
longrepr = None
|
||||
else:
|
||||
excinfo = call.excinfo
|
||||
if not isinstance(excinfo, py.code.ExceptionInfo):
|
||||
outcome = "failed"
|
||||
longrepr = excinfo
|
||||
|
|
|
@ -3,8 +3,8 @@ if __name__ == '__main__':
|
|||
import cProfile
|
||||
import py
|
||||
import pstats
|
||||
stats = cProfile.run('py.test.cmdline.main(["empty.py", ])', 'prof')
|
||||
stats = cProfile.run('py.test.cmdline.main(["skip.py", ])', 'prof')
|
||||
p = pstats.Stats("prof")
|
||||
p.strip_dirs()
|
||||
p.sort_stats('cumulative')
|
||||
print(p.print_stats(50))
|
||||
print(p.print_stats(250))
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
|
||||
import pytest
|
||||
|
||||
|
||||
SKIP = True
|
||||
|
||||
@pytest.mark.parametrize("x", xrange(5000))
|
||||
def test_foo(x):
|
||||
if SKIP:
|
||||
pytest.skip("heh")
|
Loading…
Reference in New Issue