From: "Michael R. Crusoe" <crusoe@debian.org>
Date: Sat, 4 May 2024 08:23:45 +0200
Subject: Use the packaged version of the Python 3 docs

Forwarded: not-needed
---
 docs/src/conf.py                           | 2 +-
 tests/extension/ref/ref_builtins.txt       | 2 +-
 tests/extension/ref/ref_func_no_module.txt | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/docs/src/conf.py b/docs/src/conf.py
index 44dd450..8e5194a 100644
--- a/docs/src/conf.py
+++ b/docs/src/conf.py
@@ -40,7 +40,7 @@ codeautolink_custom_blocks = {"python3": None, "pycon3": clean_pycon}
 autodoc_default_options = {"members": True, "undoc-members": True}
 autodoc_typehints = "description"
 intersphinx_mapping = {
-    "python": ("https://docs.python.org/3/", None),
+    "python": ("/usr/share/doc/python3/html/", None),
     "numpy": ("https://numpy.org/doc/stable/", None),
     "matplotlib": ("https://matplotlib.org/stable/", None),
 }
diff --git a/tests/extension/ref/ref_builtins.txt b/tests/extension/ref/ref_builtins.txt
index c743d14..4e5c3a7 100644
--- a/tests/extension/ref/ref_builtins.txt
+++ b/tests/extension/ref/ref_builtins.txt
@@ -5,7 +5,7 @@ extensions = [
     "sphinx.ext.intersphinx",
     "sphinx_codeautolink",
 ]
-intersphinx_mapping = {"python": ('https://docs.python.org/3/', None)}
+intersphinx_mapping = {"python": ('/usr/share/doc/python3/html/', None)}
 # split
 Test project
 ============
diff --git a/tests/extension/ref/ref_func_no_module.txt b/tests/extension/ref/ref_func_no_module.txt
index 330fbd8..3da756e 100644
--- a/tests/extension/ref/ref_func_no_module.txt
+++ b/tests/extension/ref/ref_func_no_module.txt
@@ -4,7 +4,7 @@ datetime.fromisoformat
 # split
 extensions.append("sphinx.ext.intersphinx")
 intersphinx_mapping = {
-    "python": ("https://docs.python.org/3/", None),
+    "python": ("/usr/share/doc/python3/html/", None),
 }
 # split
 Test project
