8000 TST Uses pytest fixtures in tests when using fetch_ dataset loaders by thomasjpfan · Pull Request #19166 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

TST Uses pytest fixtures in tests when using fetch_ dataset loaders #19166

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

thomasjpfan
Copy link
Member

Reference Issues/PRs

Follow up for #19118

What does this implement/fix? Explain your changes.

#19118 added a feature to detect fetch_* through its fixtures. This detection is used to enable downloading the datasets serially when they are being used in the tests. This functionally requires that all tests uses these fixtures instead of importing directly from sklearn.dataset. This PR updates sklearn/datasets/tests/test_common.py to use the fixtures.

A second benefit of this PR is that it centralizes the handling of SKLEARN_SKIP_NETWORK_TESTS into one file. (sklearn/conftest.py)

Base automatically changed from master to main January 22, 2021 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0