File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515
1616import matplotlib
1717from matplotlib .compat import subprocess
18- from matplotlib .testing .noseclasses import ImageComparisonFailure
18+ from matplotlib .testing .exceptions import ImageComparisonFailure
1919from matplotlib import _png
2020from matplotlib import _get_cachedir
2121from matplotlib import cbook
Original file line number Diff line number Diff line change 1+ class KnownFailureTest (Exception ):
2+ '''Raise this exception to mark a test as a known failing test.'''
3+ pass
4+
5+ class KnownFailureDidNotFailTest (Exception ):
6+ '''Raise this exception to mark a test should have failed but did not.'''
7+ pass
8+
9+ class ImageComparisonFailure (AssertionError ):
10+ '''Raise this exception to mark a test as a comparison between two images.'''
Original file line number Diff line number Diff line change 55
66import os
77from nose .plugins .errorclass import ErrorClass , ErrorClassPlugin
8-
9- class KnownFailureTest (Exception ):
10- '''Raise this exception to mark a test as a known failing test.'''
11- pass
12-
13- class KnownFailureDidNotFailTest (Exception ):
14- '''Raise this exception to mark a test should have failed but did not.'''
15- pass
16-
17- class ImageComparisonFailure (AssertionError ):
18- '''Raise this exception to mark a test as a comparison between two images.'''
8+ from matplotlib .testing .exceptions import (KnownFailureTest ,
9+ KnownFailureDidNotFailTest ,
10+ ImageComparisonFailure )
1911
2012class KnownFailure (ErrorClassPlugin ):
2113 '''Plugin that installs a KNOWNFAIL error class for the
You can’t perform that action at this time.
0 commit comments