Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4876688

Browse files
authored
[arm64] MNT skip docstring check in tutorial for ARM64 (scikit-learn#18728)
1 parent b25d64f commit 4876688

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

build_tools/travis/test_docs.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,6 @@ if [[ "$BUILD_WITH_ICC" == "true" ]]; then
99
source /opt/intel/inteloneapi/setvars.sh
1010
fi
1111

12-
PYTEST="pytest -n $CI_CPU_COUNT" make test-doc
12+
if [[ "$TRAVIS_CPU_ARCH" != "arm64" ]]; then
13+
PYTEST="pytest -n $CI_CPU_COUNT" make test-doc
14+
fi

build_tools/travis/test_script.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ run_tests() {
4040
if [[ "$TRAVIS_CPU_ARCH" == "arm64" ]]; then
4141
# use pytest-xdist for faster tests
4242
TEST_CMD="$TEST_CMD -n $CI_CPU_COUNT"
43+
# remove option to test docstring
44+
sed -i -e 's/--doctest-modules//g' setup.cfg
4345
else
4446
# Tests that require large downloads over the networks are skipped in CI.
4547
# Here we make sure, that they are still run on a regular basis.

doc/tutorial/statistical_inference/supervised_learning.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ the separating line (less regularization).
417417
418418
.. figure:: /auto_examples/svm/images/sphx_glr_plot_svm_margin_001.png
419419
:target: ../../auto_examples/svm/plot_svm_margin.html
420-
420+
421421
**Unregularized SVM**
422422

423423
.. figure:: /auto_examples/svm/images/sphx_glr_plot_svm_margin_002.png

0 commit comments

Comments
 (0)