10
10
from numpy .testing import assert_equal
11
11
from nose import with_setup
12
12
from nose .tools import assert_false , assert_true
13
+ from nose .plugins .skip import SkipTest
13
14
import matplotlib as mpl
14
15
from matplotlib import pyplot as plt
15
16
from matplotlib import animation
16
- from matplotlib .testing .noseclasses import KnownFailureTest
17
17
from matplotlib .testing .decorators import cleanup
18
18
from matplotlib .testing .decorators import CleanupTest
19
19
@@ -113,8 +113,7 @@ def test_save_animation_smoketest():
113
113
@cleanup
114
114
def check_save_animation (writer , extension = 'mp4' ):
115
115
if not animation .writers .is_available (writer ):
116
- raise KnownFailureTest ("writer '%s' not available on this system"
117
- % writer )
116
+ raise SkipTest ("writer '%s' not available on this system" % writer )
118
117
fig , ax = plt .subplots ()
119
118
line , = ax .plot ([], [])
120
119
@@ -138,9 +137,8 @@ def animate(i):
138
137
try :
139
138
anim .save (F .name , fps = 30 , writer = writer , bitrate = 500 )
140
139
except UnicodeDecodeError :
141
- raise KnownFailureTest ("There can be errors in the numpy " +
142
- "import stack, " +
143
- "see issues #1891 and #2679" )
140
+ raise SkipTest ("There can be errors in the numpy import stack, "
141
+ "see issues #1891 and #2679" )
144
142
finally :
145
143
try :
146
144
os .remove (F .name )
0 commit comments