Add support for calling `pytest.xfail()` and `pytest.importorskip()` with doctests.