Skip to content

Commit 1de2363

Browse files
authored
Merge pull request #10906 from anntzer/imagecomparisontest
Deprecate ImageComparisonTest.
2 parents fb4b612 + f77735b commit 1de2363

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

doc/api/next_api_changes/2018-02-15-AL-deprecations.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,17 @@ The following modules are deprecated:
1111
The following classes, methods, functions, and attributes are deprecated:
1212

1313
- ``afm.parse_afm``,
14-
- ``Annotation.arrow``,
14+
- ``backend_wx.FigureCanvasWx.macros``,
1515
- ``cbook.GetRealpathAndStat``, ``cbook.Locked``,
1616
- ``cbook.is_numlike`` (use ``isinstance(..., numbers.Number)`` instead),
1717
``cbook.listFiles``, ``cbook.unicode_safe``
1818
- ``container.Container.set_remove_method``,
1919
- ``dates.DateFormatter.strftime_pre_1900``, ``dates.DateFormatter.strftime``,
2020
- ``font_manager.TempCache``,
2121
- ``mathtext.unichr_safe`` (use ``chr`` instead),
22-
- ``FigureCanvasWx.macros``,
22+
- ``testing.ImageComparisonTest``,
2323
- ``texmanager.dvipng_hack_alpha``,
24+
- ``text.Annotation.arrow``,
2425

2526
The following rcParams are deprecated:
2627
- ``pgf.debug`` (the pgf backend relies on logging),

lib/matplotlib/testing/decorators.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ def compare(self, idx, baseline, extension):
251251
_raise_on_image_difference(expected_fname, actual_fname, self.tol)
252252

253253

254+
@cbook.deprecated("3.0")
254255
class ImageComparisonTest(CleanupTest, _ImageComparisonBase):
255256
"""
256257
Nose-based image comparison class

0 commit comments

Comments
 (0)