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

Skip to content

Commit 5a31ad3

Browse files
committed
TST: Use a better command for annimation tests
python is blocking, leading to timeouts...
1 parent 89e7e5e commit 5a31ad3

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
@@ -102,7 +102,8 @@ def test_movie_writer_registry():
102102
assert_false(animation.writers._dirty)
103103
assert_false(animation.writers.is_available("ffmpeg"))
104104
# something which is garanteered to be available in path
105-
bin = u"python"
105+
# and exits immediately
106+
bin = u"true" if sys.platform != 'win32' else u"where"
106107
mpl.rcParams['animation.ffmpeg_path'] = bin
107108
assert_true(animation.writers._dirty)
108109
animation.writers.list() # resets

0 commit comments

Comments
 (0)