Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitff059c0

Browse files
authored
Merge pull request#11604 from QuLogic/rm-temp-files
TST: Place animation files in a temp dir.
2 parents7684f0f +f8758eb commitff059c0

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
notanimation.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-
deftest_embed_limit(method_name,caplog):
219-
withmpl.rc_context({"animation.embed_limit":1e-6}):# ~1 byte.
220-
getattr(make_animation(frames=1),method_name)()
218+
deftest_embed_limit(method_name,caplog,tmpdir):
219+
withtmpdir.as_cwd():
220+
withmpl.rc_context({"animation.embed_limit":1e-6}):# ~1 byte.
221+
getattr(make_animation(frames=1),method_name)()
221222
assertlen(caplog.records)==1
222223
record,=caplog.records
223224
assert (record.name=="matplotlib.animation"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp