Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 30eaa0b

Browse files
committed
TST : minor tweaks to animation smoketests
1 parent 31fe5e0 commit 30eaa0b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/matplotlib/tests/test_animation.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def test_save_animation_smoketest():
2828
yield check_save_animation, writer, extension
2929

3030

31-
@with_setup(CleanupTest.setup_class, CleanupTest.teardown_class)
31+
@cleanup
3232
def check_save_animation(writer, extension='mp4'):
3333
if not animation.writers.is_available(writer):
3434
raise KnownFailureTest("writer '%s' not available on this system"
@@ -39,6 +39,9 @@ def check_save_animation(writer, extension='mp4'):
3939
fig, ax = plt.subplots()
4040
line, = ax.plot([], [])
4141

42+
ax.set_xlim(0, 10)
43+
ax.set_ylim(-1, 1)
44+
4245
def init():
4346
line.set_data([], [])
4447
return line,

0 commit comments

Comments
 (0)