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"
|
outcome = "passed"
|
||||||
longrepr = None
|
longrepr = None
|
||||||
else:
|
else:
|
||||||
excinfo = call.excinfo
|
|
||||||
if not isinstance(excinfo, py.code.ExceptionInfo):
|
if not isinstance(excinfo, py.code.ExceptionInfo):
|
||||||
outcome = "failed"
|
outcome = "failed"
|
||||||
longrepr = excinfo
|
longrepr = excinfo
|
||||||
|
|
|
@ -3,8 +3,8 @@ if __name__ == '__main__':
|
||||||
import cProfile
|
import cProfile
|
||||||
import py
|
import py
|
||||||
import pstats
|
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 = pstats.Stats("prof")
|
||||||
p.strip_dirs()
|
p.strip_dirs()
|
||||||
p.sort_stats('cumulative')
|
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