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

Treat deprecation warnings as errors #524

Draft
wants to merge 14 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,18 @@ addopts = [
"--tb=native",
"--strict-markers"
]

filterwarnings = [
# elevate conda's deprecated warning to an error
"error::PendingDeprecationWarning:conda",
"error::DeprecationWarning:conda",
# elevate conda-libmamba-solver's deprecated warning to an error
"error::PendingDeprecationWarning:conda_libmamba_solver",
"error::DeprecationWarning:conda_libmamba_solver",
# ignore conda-index error
"ignore::PendingDeprecationWarning:conda_index",
"ignore::DeprecationWarning:conda_index",
"ignore:Python 3.14 will, by default, filter extracted tar archives and reject files or modify their metadata:DeprecationWarning",
]
markers = [
"integration: integration tests that usually require an internet connect",
"slow: slow running tests",
Expand Down
7 changes: 5 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,8 @@
# Copyright (C) 2023 conda
# SPDX-License-Identifier: BSD-3-Clause

from conda.testing import conda_cli, path_factory, tmp_env # noqa
from conda.testing.fixtures import clear_subdir_cache, tmpdir # noqa
pytest_plugins = (
# Add testing fixtures and internal pytest plugins here
"conda.testing",
"conda.testing.fixtures",
)
Loading
Loading