Skip to content

Commit ab7366f

Browse files
committed
Merge pull request matplotlib#4005 from dopplershift/mencoder-tests
TST : Try to fix mencoder tests
2 parents dc90439 + 3d193ae commit ab7366f

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ matrix:
2424

2525
install:
2626
- pip install -q --use-mirrors nose python-dateutil $NUMPY pep8 pyparsing pillow sphinx
27-
- sudo apt-get update && sudo apt-get -qq install inkscape libav-tools gdb
27+
- sudo apt-get update && sudo apt-get -qq install inkscape libav-tools gdb mencoder
2828
# We use --no-install-recommends to avoid pulling in additional large latex docs that we don't need
2929

3030
# We manually install humor sans using the package from Ubuntu 14.10. Unfortunatly humor sans is not

lib/matplotlib/tests/test_animation.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@ 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"
3535
% writer)
36-
if 'mencoder' in writer:
37-
raise KnownFailureTest("mencoder is broken")
38-
3936
fig, ax = plt.subplots()
4037
line, = ax.plot([], [])
4138

@@ -57,7 +54,7 @@ def animate(i):
5754
F.close()
5855
anim = animation.FuncAnimation(fig, animate, init_func=init, frames=5)
5956
try:
60-
anim.save(F.name, fps=30, writer=writer)
57+
anim.save(F.name, fps=30, writer=writer, bitrate=500)
6158
except UnicodeDecodeError:
6259
raise KnownFailureTest("There can be errors in the numpy " +
6360
"import stack, " +

0 commit comments

Comments
 (0)