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 7
7
from __future__ import division
8
8
9
9
import matplotlib
10
- from matplotlib .testing .noseclasses import ImageComparisonFailure
10
+ from matplotlib .testing .exceptions import ImageComparisonFailure
11
11
from matplotlib .testing import image_util
12
12
from matplotlib import _png
13
13
import math
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 1
1
from __future__ import print_function
2
2
import os
3
3
from nose .plugins .errorclass import ErrorClass , ErrorClassPlugin
4
-
5
- class KnownFailureTest (Exception ):
6
- '''Raise this exception to mark a test as a known failing test.'''
7
- pass
8
-
9
- class KnownFailureDidNotFailTest (Exception ):
10
- '''Raise this exception to mark a test should have failed but did not.'''
11
- pass
12
-
13
- class ImageComparisonFailure (AssertionError ):
14
- '''Raise this exception to mark a test as a comparison between two images.'''
4
+ from matplotlib .testing .exceptions import (KnownFailureTest ,
5
+ KnownFailureDidNotFailTest ,
6
+ ImageComparisonFailure )
15
7
16
8
class KnownFailure (ErrorClassPlugin ):
17
9
'''Plugin that installs a KNOWNFAIL error class for the
You can’t perform that action at this time.
0 commit comments