8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7684f0f + f8758eb commit ff059c0Copy full SHA for ff059c0
lib/matplotlib/tests/test_animation.py
@@ -215,9 +215,10 @@ def test_movie_writer_registry():
215
not animation.writers.is_available(mpl.rcParams["animation.writer"]),
216
reason="animation writer not installed")
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)()
+def test_embed_limit(method_name, caplog, tmpdir):
+ with tmpdir.as_cwd():
+ with mpl.rc_context({"animation.embed_limit": 1e-6}): # ~1 byte.
221
+ getattr(make_animation(frames=1), method_name)()
222
assert len(caplog.records) == 1
223
record, = caplog.records
224
assert (record.name == "matplotlib.animation"
0 commit comments