8000 CI Ignore distutils deprecation warnings (#23120) · scikit-learn/scikit-learn@9be7424 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9be7424

Browse files
jeremiedbbogrisel
andauthored
CI Ignore distutils deprecation warnings (#23120)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
1 parent 0d669dc commit 9be7424

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

build_tools/azure/test_script.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,17 @@ if [[ "$COVERAGE" == "true" ]]; then
4444
fi
4545

4646
if [[ -n "$CHECK_WARNINGS" ]]; then
47-
# numpy's 1.19.0's tostring() deprecation is ignored until scipy and joblib removes its usage
48-
TEST_CMD="$TEST_CMD -Werror::DeprecationWarning -Werror::FutureWarning -Wignore:tostring:DeprecationWarning"
47+
TEST_CMD="$TEST_CMD -Werror::DeprecationWarning -Werror::FutureWarning"
48+
49+
# numpy's 1.19.0's tostring() deprecation is ignored until scipy and joblib
50+
# removes its usage
51+
TEST_CMD="$TEST_CMD -Wignore:tostring:DeprecationWarning"
4952

5053
# Python 3.10 deprecates distutils, which is imported by numpy internally
5154
TEST_CMD="$TEST_CMD -Wignore:The\ distutils:DeprecationWarning"
55+
56+
# Ignore distutils deprecation warning, used by joblib internally
57+
TEST_CMD="$TEST_CMD -Wignore:distutils\ Version\ classes\ are\ deprecated:DeprecationWarning"
5258
fi
5359

5460
if [[ "$PYTEST_XDIST_VERSION" != "none" ]]; then

0 commit comments

Comments
 (0)
0