8000 Merge pull request #11604 from QuLogic/rm-temp-files · matplotlib/matplotlib@ff059c0 · GitHub
[go: up one dir, main page]

Skip to content

Commit ff059c0

Browse files
authored
Merge pull request #11604 from QuLogic/rm-temp-files
TST: Place animation files in a temp dir.
2 parents 7684f0f + f8758eb commit ff059c0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/matplotlib/tests/test_animation.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,9 +215,10 @@ def test_movie_writer_registry():
215215
not animation.writers.is_available(mpl.rcParams["animation.writer"]),
216216
reason="animation writer not installed")
217217
@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)()
221222
assert len(caplog.records) == 1
222223
record, = caplog.records
223224
assert (record.name == "matplotlib.animation"

0 commit comments

Comments
 (0)
0