Thanks to visit codestin.com Credit goes to github.com
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.
1 parent 94f41d1 commit f8758ebCopy full SHA for f8758eb
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