Repository: numpy/numpy
Pull request: CI: pin scipy-doctest to 1.5.1
Fixes #28019 

Problem statement:
TST,DOC: Bump `scipy_doctest` (or remove pin) and fix new failures
@ev-br ping FYI,  since the new scipy-doctest release (less than an hour ago) the refcheck has universal failures.

I suspect, this is all just bad documentation that needs fixing, but not sure yet.  In either case, until fixed both CircleCI and the "benchmark" tests which also still run the refcheck are expected to fail.

(Currently, also the linter just started failing...)

Hints from issue discussion:
We should pin tools to a specific version, and update in a controlled fasion.

Commit message: pin scipy-doctest to 1.5.1

Patch to review:
diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml
index dc70844c671b..cd4139db58be 100644
--- a/.github/workflows/linux.yml
+++ b/.github/workflows/linux.yml
@@ -197,7 +197,7 @@ jobs:
     - name: Check docstests
       shell: 'script -q -e -c "bash --noprofile --norc -eo pipefail {0}"'
       run: |
-        pip install scipy-doctest hypothesis matplotlib scipy pytz pandas
+        pip install scipy-doctest==1.5.1 hypothesis==6.104.1 matplotlib scipy pytz pandas
         spin check-docs -v
         spin check-tutorials -v
 
diff --git a/requirements/doc_requirements.txt b/requirements/doc_requirements.txt
index 74ef448182af..67d6597cf662 100644
--- a/requirements/doc_requirements.txt
+++ b/requirements/doc_requirements.txt
@@ -18,4 +18,4 @@ towncrier
 toml
 
 # for doctests, also needs pytz which is in test_requirements
-scipy-doctest
+scipy-doctesti==1.5.1


Code review comments:
diff_hunk: @@ -18,4 +18,4 @@ towncrier
 toml
 
 # for doctests, also needs pytz which is in test_requirements
-scipy-doctest
+scipy-doctesti==1.5.1
path: requirements/doc_requirements.txt
text: @user1:
```suggestion
scipy-doctest==1.5.1
```