File tree Expand file tree Collapse file tree 3 files changed +14
-12
lines changed Expand file tree Collapse file tree 3 files changed +14
-12
lines changed Original file line number Diff line number Diff line change 15
15
16
16
import matplotlib
17
17
from matplotlib .compat import subprocess
18
- from matplotlib .testing .noseclasses import ImageComparisonFailure
18
+ from matplotlib .testing .exceptions import ImageComparisonFailure
19
19
from matplotlib import _png
20
20
from matplotlib import _get_cachedir
21
21
from 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 5
5
6
6
import os
7
7
from 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 )
19
11
20
12
class KnownFailure (ErrorClassPlugin ):
21
13
'''Plugin that installs a KNOWNFAIL error class for the
You can’t perform that action at this time.
0 commit comments