Sorry, I commented to the PR rather than the commit:
{{{
import pytest
with pytest.raises((KeyError, ZeroDivisionError)):
    raise 1/0
}}}
works.