Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f77735b

Browse files
committed
Deprecate ImageComparisonTest.
It's a weird leftover at that point that tries to set up a nose test class but uses pytest markers (via e.g. _checked_on_freetype_version, which uses _knownfailureif, which itself unconditionally relies on pytest) -- basically, it can't actually be used for nose-based testing unless nose somehow learns to interpret pytest markers. A (fairly trivial...) PR has been opened on pytest-mpl to fix their use.
1 parent c8fd779 commit f77735b

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

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)