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

Skip to content

Commit 7d847ea

Browse files
committed
TST: Use a better command for annimation tests
python is blocking, leading to timeouts...
1 parent 0a1ae7c commit 7d847ea

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/matplotlib/tests/test_animation.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,9 @@ def test_movie_writer_registry():
101101
animation.writers.list() # resets
102102
assert_false(animation.writers._dirty)
103103
assert_false(animation.writers.is_available("ffmpeg"))
104-
# something which is garanteered to be available in path
105-
bin = u"python"
104+
# something which is garanteered to be available in path
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)