@@ -0,0 +1,566 @@
+import os%0Afrom pathlib import Path%0A%0Aimport pytest%0A%0A%0A@pytest.fixture(autouse=True)%0Adef tmp_doctest_path(request, tmp_path):%0A    %22%22%22Run doctests in isolated temp dir so outputs do not end up in repo%22%22%22%0A    # Trigger ONLY for doctestplus%0A    doctest_plugin = request.config.pluginmanager.getplugin(%22doctestplus%22)%0A    if isinstance(request.node.parent, doctest_plugin._doctest_textfile_item_cls):%0A        start_path = Path.cwd()%0A        os.chdir(tmp_path)%0A        try:%0A            yield tmp_path%0A        finally:%0A            os.chdir(start_path)%0A    else:%0A        yield%0A

Add autouse tmp_doctest_path fixture in conftest.py