Skip to content
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

consolidate pytest config in pyproject.toml #6201

Open
wants to merge 2 commits into
base: branch-25.02
Choose a base branch
from

Conversation

jameslamb
Copy link
Member

fixes #6194

Wheel tests in this project are emitting tons of warnings like this:

test_random_forest.py:1247
/__w/cuml/cuml/python/cuml/cuml/tests/test_random_forest.py:1247: PytestUnknownMarkWarning: Unknown pytest.mark.memleak - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
@pytest.mark.memleak

I think that's because the introduction of a pytest.ini file in #6078 resulted in all of the pytest options from pyproject.toml being ignored.

From https://docs.pytest.org/en/stable/reference/customize.html#pytest-ini

pytest.ini files take precedence over other files, even when empty.

I think "take precedence" there means that if pytest finds a pytest.ini, it stops searching for other configuration files.

@jameslamb jameslamb added improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Dec 31, 2024
Copy link

copy-pr-bot bot commented Dec 31, 2024

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@github-actions github-actions bot added the Cython / Python Cython or Python issue label Dec 31, 2024
@jameslamb
Copy link
Member Author

/ok to test

@jameslamb jameslamb changed the title WIP: consolidate pytest config in pyproject.toml consolidate pytest config in pyproject.toml Dec 31, 2024
@jameslamb jameslamb marked this pull request as ready for review December 31, 2024 22:06
@jameslamb jameslamb requested review from a team as code owners December 31, 2024 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Cython / Python Cython or Python issue improvement Improvement / enhancement to an existing function non-breaking Non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CI logs contain a lot of warnings about unknown mark
1 participant