From 36265ccbf6997bdb7d380e76fe08252bcc141168 Mon Sep 17 00:00:00 2001 From: "oleg.hoefling" Date: Thu, 21 Oct 2021 19:59:04 +0200 Subject: [PATCH 1/2] replace hardcoded links to bugs.python.org with extlinks Signed-off-by: oleg.hoefling --- doc/en/changelog.rst | 2 +- doc/en/conf.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/en/changelog.rst b/doc/en/changelog.rst index 2d11fb5cf..e5ad42a2b 100644 --- a/doc/en/changelog.rst +++ b/doc/en/changelog.rst @@ -1397,7 +1397,7 @@ Bug Fixes - :issue:`5914`: pytester: fix :py:func:`~_pytest.pytester.LineMatcher.no_fnmatch_line` when used after positive matching. -- :issue:`6082`: Fix line detection for doctest samples inside :py:class:`python:property` docstrings, as a workaround to `bpo-17446 `__. +- :issue:`6082`: Fix line detection for doctest samples inside :py:class:`python:property` docstrings, as a workaround to :bpo:`17446`. - :issue:`6254`: Fix compatibility with pytest-parallel (regression in pytest 5.3.0). diff --git a/doc/en/conf.py b/doc/en/conf.py index 0e86a87b1..bb7f1bcc7 100644 --- a/doc/en/conf.py +++ b/doc/en/conf.py @@ -162,6 +162,7 @@ linkcheck_workers = 5 _repo = "https://github.com/pytest-dev/pytest" extlinks = { + "bpo": ("https://bugs.python.org/issue%s", "bpo-%s"), "pypi": ("https://pypi.org/project/%s/", ""), "issue": (f"{_repo}/issues/%s", "issue #"), } From 16e15b99ae70d20c85b94ede74472999639945e5 Mon Sep 17 00:00:00 2001 From: "oleg.hoefling" Date: Sun, 24 Oct 2021 17:40:01 +0200 Subject: [PATCH 2/2] sphinx 3 compat Signed-off-by: oleg.hoefling --- doc/en/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/en/conf.py b/doc/en/conf.py index bb7f1bcc7..96e26681d 100644 --- a/doc/en/conf.py +++ b/doc/en/conf.py @@ -162,7 +162,7 @@ linkcheck_workers = 5 _repo = "https://github.com/pytest-dev/pytest" extlinks = { - "bpo": ("https://bugs.python.org/issue%s", "bpo-%s"), + "bpo": ("https://bugs.python.org/issue%s", "bpo-"), "pypi": ("https://pypi.org/project/%s/", ""), "issue": (f"{_repo}/issues/%s", "issue #"), }