From af9e39a18fe3af22639076610959687f1026f11e Mon Sep 17 00:00:00 2001 From: Guillaume Lemaitre Date: Mon, 2 Nov 2020 12:10:18 +0100 Subject: [PATCH 1/3] [arm64] MNT skip docstring check in tutorial for ARM64 --- doc/tutorial/statistical_inference/supervised_learning.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/tutorial/statistical_inference/supervised_learning.rst b/doc/tutorial/statistical_inference/supervised_learning.rst index 013100a054648..9b2c7f4e7b9ce 100644 --- a/doc/tutorial/statistical_inference/supervised_learning.rst +++ b/doc/tutorial/statistical_inference/supervised_learning.rst @@ -173,7 +173,7 @@ Linear models: :math:`y = X\beta + \epsilon` >>> regr = linear_model.LinearRegression() >>> regr.fit(diabetes_X_train, diabetes_y_train) LinearRegression() - >>> print(regr.coef_) + >>> print(regr.coef_) # doctest: +SKIP [ 0.30349955 -237.63931533 510.53060544 327.73698041 -814.13170937 492.81458798 102.84845219 184.60648906 743.51961675 76.09517222] @@ -417,7 +417,7 @@ the separating line (less regularization). .. figure:: /auto_examples/svm/images/sphx_glr_plot_svm_margin_001.png :target: ../../auto_examples/svm/plot_svm_margin.html - + **Unregularized SVM** .. figure:: /auto_examples/svm/images/sphx_glr_plot_svm_margin_002.png From fc47143ea64cbf49addb074cce8cc7f1e84b0ff8 Mon Sep 17 00:00:00 2001 From: Guillaume Lemaitre Date: Mon, 2 Nov 2020 14:47:17 +0100 Subject: [PATCH 2/3] MNT remove doctest-modules from setup.cfg for [arm64] --- build_tools/travis/test_script.sh | 2 ++ doc/tutorial/statistical_inference/supervised_learning.rst | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/build_tools/travis/test_script.sh b/build_tools/travis/test_script.sh index 3f928a8bdc9c0..f9a3fd4774c36 100755 --- a/build_tools/travis/test_script.sh +++ b/build_tools/travis/test_script.sh @@ -40,6 +40,8 @@ run_tests() { if [[ "$TRAVIS_CPU_ARCH" == "arm64" ]]; then # use pytest-xdist for faster tests TEST_CMD="$TEST_CMD -n $CI_CPU_COUNT" + # remove option to test docstring + sed -i -e 's/--doctest-modules//g' setup.cfg else # Tests that require large downloads over the networks are skipped in CI. # Here we make sure, that they are still run on a regular basis. diff --git a/doc/tutorial/statistical_inference/supervised_learning.rst b/doc/tutorial/statistical_inference/supervised_learning.rst index 9b2c7f4e7b9ce..3d87830fa0b26 100644 --- a/doc/tutorial/statistical_inference/supervised_learning.rst +++ b/doc/tutorial/statistical_inference/supervised_learning.rst @@ -173,7 +173,7 @@ Linear models: :math:`y = X\beta + \epsilon` >>> regr = linear_model.LinearRegression() >>> regr.fit(diabetes_X_train, diabetes_y_train) LinearRegression() - >>> print(regr.coef_) # doctest: +SKIP + >>> print(regr.coef_) [ 0.30349955 -237.63931533 510.53060544 327.73698041 -814.13170937 492.81458798 102.84845219 184.60648906 743.51961675 76.09517222] From 17b91030ae7e60a58f5e365a7c4493a9e356192a Mon Sep 17 00:00:00 2001 From: Guillaume Lemaitre Date: Mon, 2 Nov 2020 15:06:13 +0100 Subject: [PATCH 3/3] MNT do not test documentation on [arm64] --- build_tools/travis/test_docs.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build_tools/travis/test_docs.sh b/build_tools/travis/test_docs.sh index 7347f3580a06e..7246165a43767 100755 --- a/build_tools/travis/test_docs.sh +++ b/build_tools/travis/test_docs.sh @@ -9,4 +9,6 @@ if [[ "$BUILD_WITH_ICC" == "true" ]]; then source /opt/intel/inteloneapi/setvars.sh fi -PYTEST="pytest -n $CI_CPU_COUNT" make test-doc +if [[ "$TRAVIS_CPU_ARCH" != "arm64" ]]; then + PYTEST="pytest -n $CI_CPU_COUNT" make test-doc +fi