'If the block of the code being tested by deprecated_call() raises an exception,
it must raise the exception undisturbed.'

@pytest.mark.parametrize('mode', ['context_manager', 'call'])
def test_deprecated_call_exception_is_raised(self, mode):

    def f():
        raise ValueError('some    exception')
    with pytest.raises(ValueError, match='some    exception'):
        if (mode == 'call'):
            pytest.deprecated_call(f)
        else:
            with pytest.deprecated_call():
                f()
