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

Correct testing per deprecation/removal in conda-build #179

Merged
merged 2 commits into from
Aug 14, 2024
Merged
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
11 changes: 11 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,17 @@ Home = "https://github.com/conda/conda-index"
[tool.pytest.ini_options]
minversion = "7.0"
testpaths = ["tests"]
filterwarnings = [
# elevate conda's deprecated warning to an error
"error::PendingDeprecationWarning:conda",
"error::DeprecationWarning:conda",
# elevate conda-build's deprecated warning to an error
"error::PendingDeprecationWarning:conda_build",
"error::DeprecationWarning:conda_build",
# elevate conda-index's deprecated warning to an error
"error::PendingDeprecationWarning:conda_index",
"error::DeprecationWarning:conda_index",
]

[tool.coverage.run]
concurrency = ["multiprocessing", "thread"]
Expand Down
3 changes: 0 additions & 3 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
filename_hashing_default,
ignore_verify_codes_default,
no_rewrite_stdout_env_default,
noarch_python_build_age_default,
)
from conda_build.metadata import MetaData
from conda_build.utils import check_call_env, copy_into, prepend_bin_path
Expand Down Expand Up @@ -108,7 +107,6 @@ def boolify(v):
_src_cache_root=_src_cache_root_default,
error_overlinking=boolify(error_overlinking_default),
error_overdepending=boolify(error_overdepending_default),
noarch_python_build_age=noarch_python_build_age_default,
enable_static=boolify(enable_static_default),
no_rewrite_stdout_env=boolify(no_rewrite_stdout_env_default),
ignore_verify_codes=ignore_verify_codes_default,
Expand All @@ -118,7 +116,6 @@ def boolify(v):
assert result.no_rewrite_stdout_env is False
assert result._src_cache_root is None
assert result.src_cache_root == testing_workdir
assert result.noarch_python_build_age == 0
return result


Expand Down
Loading