You can still use the `pytest.raises` context manager:

```py
with pytest.raises(InternalError) as exc_info:
   ...
assert "abc" in str(exc_info.value)
```