tests/crashgetbundler.py
author Augie Fackler <augie@google.com>
Sat, 14 Apr 2018 11:07:24 -0400
changeset 37714 5dd71e9ae68a
parent 30876 f3807a135e43
child 43076 2372284d9457
permissions -rw-r--r--
tests: add b prefixes to test-hg-parseurl.py Now passes on Python 3. Differential Revision: https://phab.mercurial-scm.org/D3374

from __future__ import absolute_import

from mercurial.i18n import _
from mercurial import (
        changegroup,
        error,
        extensions
    )

def abort(orig, *args, **kwargs):
    raise error.Abort(_('this is an exercise'))

def uisetup(ui):
    extensions.wrapfunction(changegroup, 'getbundler', abort)