Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(5)  |  Derive(0)  |  Import(1)
exit testing process as if KeyboardInterrupt was triggered. 

        def exit(msg):
    """ exit testing process as if KeyboardInterrupt was triggered. """
    __tracebackhide__ = True
    raise Exit(msg)
        


src/n/u/nupic-linux64-HEAD/lib/python2.6/site-packages/xdist/plugin.py   nupic-linux64(Download)
    else:
        if result.exitstatus == EXITSTATUS_TESTEXIT:
            py.test.exit("forked test item %s raised Exit" %(item,))
        return [report_process_crash(item, result)]
 

src/p/l/plexnet-HEAD/third_party/generic/pypy/py/test/testing/test_outcome.py   plexnet(Download)
def test_pytest_exit():
    try:
        py.test.exit("hello")
    except:
        excinfo = py.code.ExceptionInfo()

src/p/y/pytentd-HEAD/tentd/tests/conftest.py   pytentd(Download)
"""py.test conftest file"""
 
from flask import g
from mongoengine.connection import ConnectionError
from py.test import fixture, exit
def pytest_runtest_makereport(item, call):
    """Stop the tests early when we can't connect to the database"""
    if hasattr(call.excinfo, 'type'):
        if call.excinfo.type is ConnectionError:
            exit("Could not connect to the database")

src/p/l/plexnet-HEAD/third_party/generic/pypy/py/test/plugin/pytest_runner.py   plexnet(Download)
    else:
        if result.exitstatus == EXITSTATUS_TESTEXIT:
            py.test.exit("forked test item %s raised Exit" %(item,))
        return [report_process_crash(item, result)]
 

src/p/y/pytest-xdist-1.10/xdist/plugin.py   pytest-xdist(Download)
    else:
        if result.exitstatus == EXITSTATUS_TESTEXIT:
            py.test.exit("forked test item %s raised Exit" %(item,))
        return [report_process_crash(item, result)]