Skip to content

MNT Disable pytest capture warnings by using pyproject.toml - #22

Merged
lesteve merged 7 commits into
scikit-learn:mainfrom
lesteve:disable-capture-warnings
Oct 5, 2026
Merged

lesteve merged 7 commits into
scikit-learn:mainfrom
lesteve:disable-capture-warnings

Conversation

@lesteve

@lesteve lesteve commented Oct 2, 2026

Copy link
Copy Markdown
Member

Fix #21

Comment thread tools/test_wheels.sh Outdated
Comment on lines +28 to +30
pytest -c $SCIKIT_LEARN_DIR --pyargs sklearn -n $XDIST_WORKERS
else
pytest --pyargs sklearn
pytest -c $SCIKIT_LEARN_DIR --pyargs sklearn

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

didn't you forget to add back "/pyproject.toml" ?
or maybe even define SCIKIT_LEARN_CONFIG_FILE from start.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed 😅

@lesteve

lesteve commented Oct 5, 2026

Copy link
Copy Markdown
Member Author

This seems to work fine (finally 😝) see build log. You need to click a few times to eventually get to the "test wheels" part of the log.

Comment thread tools/test_wheels.sh

PROJECT_DIR="$1"
SCIKIT_LEARN_CONFIG=$(
python -c 'import os, sys; print(os.path.realpath(sys.argv[1]))' \

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I started with using realpath but apparently it doesn't exist on macOS and the simplest alternative was to use a python one-liner ...

@lesteve
lesteve merged commit 56a97ba into scikit-learn:main Oct 5, 2026
40 checks passed
@lesteve
lesteve deleted the disable-capture-warnings branch October 5, 2026 11:03
@lesteve

lesteve commented Oct 5, 2026

Copy link
Copy Markdown
Member Author

Merging this one!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove pytest warnings capturing to reduce log verbosity

2 participants