-
Notifications
You must be signed in to change notification settings - Fork 421
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove
jinja2
checks since it is already an explicit dependency (#5497
) * Remove Jinja2 checks since it is already an explicit dependency * Deprecate UnableToParseMissingJinja2 * Add news * Add test * Fix news --------- Co-authored-by: Bianca Henderson <bhenderson@anaconda.com>
- Loading branch information
1 parent
0ef3749
commit 655e5bc
Showing
4 changed files
with
44 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
### Enhancements | ||
|
||
* <news item> | ||
|
||
### Bug fixes | ||
|
||
* <news item> | ||
|
||
### Deprecations | ||
|
||
* Deprecate `conda_build.exceptions.UnableToParseMissingJinja2`. (#5497) | ||
|
||
### Docs | ||
|
||
* <news item> | ||
|
||
### Other | ||
|
||
* <news item> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Copyright (C) 2014 Anaconda, Inc | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
from __future__ import annotations | ||
|
||
from contextlib import nullcontext | ||
|
||
import pytest | ||
|
||
from conda_build import exceptions | ||
|
||
|
||
@pytest.mark.parametrize( | ||
"function,raises", | ||
[ | ||
("UnableToParseMissingJinja2", TypeError), | ||
], | ||
) | ||
def test_deprecations(function: str, raises: type[Exception] | None) -> None: | ||
raises_context = pytest.raises(raises) if raises else nullcontext() | ||
with pytest.deprecated_call(), raises_context: | ||
getattr(exceptions, function)() |