

def assert_raises(exception, func):
    try:
        func()
        assert False, ('Expected ' + exception.__name__)
    except exception as error:
        return error

dataset/ETHPy150Open mwilliamson/python-mammoth/tests/testing.py assert_raises/original