1 new commit in pytest:
https://bitbucket.org/hpk42/pytest/commits/feedfaa045da/
Changeset: feedfaa045da
User: hpk42
Date: 2013-12-07 19:11:37
Summary: add a skip benchmark file (from issue400).
Affected #: 3 files
diff -r 852419a495f8de5bd75a5e486c6b1a5815f4cde1 -r
feedfaa045da026e0a382081bcf6b3a9a4120d47 _pytest/runner.py
--- a/_pytest/runner.py
+++ b/_pytest/runner.py
@@ -193,7 +193,6 @@
outcome = "passed"
longrepr = None
else:
- excinfo = call.excinfo
if not isinstance(excinfo, py.code.ExceptionInfo):
outcome = "failed"
longrepr = excinfo
diff -r 852419a495f8de5bd75a5e486c6b1a5815f4cde1 -r
feedfaa045da026e0a382081bcf6b3a9a4120d47 bench/bench.py
--- a/bench/bench.py
+++ b/bench/bench.py
@@ -3,8 +3,8 @@
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))
diff -r 852419a495f8de5bd75a5e486c6b1a5815f4cde1 -r
feedfaa045da026e0a382081bcf6b3a9a4120d47 bench/skip.py
--- /dev/null
+++ b/bench/skip.py
@@ -0,0 +1,10 @@
+
+import pytest
+
+
+SKIP = True
+
[email protected]("x", xrange(5000))
+def test_foo(x):
+ if SKIP:
+ pytest.skip("heh")
Repository URL: https://bitbucket.org/hpk42/pytest/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
_______________________________________________
pytest-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pytest-commit