def pytest_addoption(parser):
    """Adds option --trepan to py.test"""
    group = parser.getgroup('general')
    group._addoption('--trepan', action='store_true', dest='usetrepan',
        default=False, help='start the trepan Python debugger on errors.')
