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

Skip to content

Commit 6a01829

Browse files
committed
TST: Use a better command for annimation tests
python is blocking, leading to timeouts...
1 parent e3e2be9 commit 6a01829

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/matplotlib/tests/test_animation.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,8 @@ def test_movie_writer_registry():
180180
assert_false(animation.writers._dirty)
181181
assert_false(animation.writers.is_available("ffmpeg"))
182182
# something which is garanteered to be available in path
183-
bin = u"python"
183+
# and exits immediately
184+
bin = u"true" if sys.platform != 'win32' else u"where"
184185
mpl.rcParams['animation.ffmpeg_path'] = bin
185186
assert_true(animation.writers._dirty)
186187
animation.writers.list() # resets

0 commit comments

Comments
 (0)