From 44f133628bb3ddc52debfddef9d8ebdf4a7c4398 Mon Sep 17 00:00:00 2001 From: Evgeni Burovski Date: Fri, 20 Jun 2025 19:12:24 +0000 Subject: [PATCH] MAINT: make scipy-doctest usage forward-compatible --- build_tools/azure/test_docs.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/build_tools/azure/test_docs.sh b/build_tools/azure/test_docs.sh index f3f824d5806b0..f41072bf23a8b 100755 --- a/build_tools/azure/test_docs.sh +++ b/build_tools/azure/test_docs.sh @@ -14,8 +14,6 @@ if [[ "$scipy_doctest_installed" == "True" ]]; then # conda with putting conda in the PATH and source activate, rather than # source /etc/profile.d/conda.sh + conda activate. cd $TEST_DIR - # with scipy-doctest, --doctest-modules only runs doctests (in contrary to - # vanilla pytest where it runs doctests on top of normal tests) - python -m pytest --doctest-modules --pyargs sklearn + python -m pytest --doctest-modules --doctest-only-doctests=true --pyargs sklearn python -m pytest --doctest-modules $doc_rst_files fi