Skip to content

Commit

Permalink
Correct testing per deprecation/removal in conda-build (#179)
Browse files Browse the repository at this point in the history
* Correct testing per deprecation in conda-build

* Elevate warnings to catch deprecations in the future
  • Loading branch information
kenodegard authored Aug 14, 2024
1 parent 6db381f commit 8cb985a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
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

0 comments on commit 8cb985a

Please sign in to comment.