Skip to content

Commit

Permalink
DEPR: deprecate unused testing API (generic_image)
Browse files Browse the repository at this point in the history
  • Loading branch information
neutrinoceros committed Dec 20, 2023
1 parent b894c6f commit 2bc9dda
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions yt/utilities/answer_testing/answer_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,14 @@ def phase_plot_attribute(


def generic_image(img_fname):
from yt._maintenance.deprecation import issue_deprecation_warning

issue_deprecation_warning(
"yt.utilities.answer_testing.answer_tests.generic_image is deprecated "
"and will be removed in a future version. Please use pytest-mpl instead",
since="4.4",
stacklevel=2,
)
img_data = mpimg.imread(img_fname)
return img_data

Expand Down

0 comments on commit 2bc9dda

Please sign in to comment.