add CHANGELGOG, and make "-x" work harder to shut down immediately.

This commit is contained in:
holger krekel
2010-01-18 13:49:35 +01:00
parent 4594e5dbd8
commit b8ea732fb0
5 changed files with 30 additions and 7 deletions

View File

@@ -266,9 +266,10 @@ class TestDSession:
session.queueevent("pytest_runtest_logreport", report=ev2)
# now call the loop
loopstate = session._initloopstate(items)
session.loop_once(loopstate)
from xdist.dsession import ExitFirstInterrupt
py.test.raises(ExitFirstInterrupt, "session.loop_once(loopstate)")
assert loopstate.testsfailed
assert loopstate.shuttingdown
#assert loopstate.shuttingdown
def test_shuttingdown_filters(self, testdir):
item = testdir.getitem("def test_func(): pass")