[pypy-commit] pypy pytest: teach testsupport tests about reports now coming in unconditionally
RonnyPfannschmidt
noreply at buildbot.pypy.org
Sat Jan 21 19:00:14 CET 2012
Author: Ronny Pfannschmidt <Ronny.Pfannschmidt at gmx.de>
Branch: pytest
Changeset: r51602:ab8337ed12e8
Date: 2012-01-21 18:59 +0100
http://bitbucket.org/pypy/pypy/changeset/ab8337ed12e8/
Log: teach testsupport tests about reports now coming in unconditionally
diff --git a/pypy/tool/pytest/test/test_pytestsupport.py b/pypy/tool/pytest/test/test_pytestsupport.py
--- a/pypy/tool/pytest/test/test_pytestsupport.py
+++ b/pypy/tool/pytest/test/test_pytestsupport.py
@@ -165,7 +165,10 @@
def test_one(self): exec 'blow'
""")
- ev, = sorter.getreports("pytest_runtest_logreport")
+ reports = sorter.getreports("pytest_runtest_logreport")
+ setup, ev, teardown = reports
assert ev.failed
+ assert setup.passed
+ assert teardown.passed
assert 'NameError' in ev.longrepr.reprcrash.message
assert 'blow' in ev.longrepr.reprcrash.message
More information about the pypy-commit
mailing list