File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -215,9 +215,10 @@ def test_movie_writer_registry():
215
215
not animation .writers .is_available (mpl .rcParams ["animation.writer" ]),
216
216
reason = "animation writer not installed" )
217
217
@pytest .mark .parametrize ("method_name" , ["to_html5_video" , "to_jshtml" ])
218
- def test_embed_limit (method_name , caplog ):
219
- with mpl .rc_context ({"animation.embed_limit" : 1e-6 }): # ~1 byte.
220
- getattr (make_animation (frames = 1 ), method_name )()
218
+ def test_embed_limit (method_name , caplog , tmpdir ):
219
+ with tmpdir .as_cwd ():
220
+ with mpl .rc_context ({"animation.embed_limit" : 1e-6 }): # ~1 byte.
221
+ getattr (make_animation (frames = 1 ), method_name )()
221
222
assert len (caplog .records ) == 1
222
223
record , = caplog .records
223
224
assert (record .name == "matplotlib.animation"
You can’t perform that action at this time.
0 commit comments