File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -36,18 +36,21 @@ if [[ "$COVERAGE" == "true" ]]; then
36
36
# report that otherwise hides the test failures and forces long scrolls in
37
37
# the CI logs.
38
38
export COVERAGE_PROCESS_START=" $BUILD_SOURCESDIRECTORY /.coveragerc"
39
- TEST_CMD=" $TEST_CMD --cov-config=$COVERAGE_PROCESS_START --cov sklearn --cov-report="
39
+ TEST_CMD=" $TEST_CMD --cov-config=' $COVERAGE_PROCESS_START ' --cov sklearn --cov-report="
40
40
fi
41
41
42
42
if [[ -n " $CHECK_WARNINGS " ]]; then
43
43
# numpy's 1.19.0's tostring() deprecation is ignored until scipy and joblib removes its usage
44
44
TEST_CMD=" $TEST_CMD -Werror::DeprecationWarning -Werror::FutureWarning -Wignore:tostring:DeprecationWarning"
45
+
46
+ # Python 3.10 deprecates disutils and is imported by numpy interally during import time
47
+ TEST_CMD=" $TEST_CMD -Wignore:The\ distutils:DeprecationWarning"
45
48
fi
46
49
47
50
if [[ " $PYTEST_XDIST_VERSION " != " none" ]]; then
48
51
TEST_CMD=" $TEST_CMD -n2"
49
52
fi
50
53
51
54
set -x
52
- $TEST_CMD --pyargs sklearn
55
+ eval " $TEST_CMD --pyargs sklearn"
53
56
set +x
Original file line number Diff line number Diff line change @@ -19,8 +19,6 @@ addopts =
19
19
20
20
filterwarnings =
21
21
ignore:the matrix subclass:PendingDeprecationWarning
22
- # Python 3.10 deprecates disutils and is imported by numpy interally during import time
23
- ignore:The distutils:DeprecationWarning
24
22
25
23
[wheelhouse_uploader]
26
24
artifact_indexes =
You can’t perform that action at this time.
0 commit comments