Skip to content

Commit 077e21c

Browse files
committed
Merge pull request #4005 from dopplershift/mencoder-tests
TST : Try to fix mencoder tests Conflicts: .travis.yml cherry-pick tried to pull over too many changes in travis.yaml
1 parent 09be64e commit 077e21c

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ matrix:
2222

2323
install:
2424
- pip install -q --use-mirrors nose python-dateutil numpy pep8 pyparsing pillow
25-
- sudo apt-get update && sudo apt-get -qq install inkscape libav-tools
26-
# We use --no-install-recommends to avoid pulling in additional large latex docs that we don't need
25+
- sudo apt-get update && sudo apt-get -qq install inkscape libav-tools mencoder
26+
# We use --no-install-recommends to avoid pulling in additional large latex docs that we don't need
2727
- if [[ $BUILD_DOCS == true ]]; then sudo apt-get install -qq --no-install-recommends dvipng texlive-latex-base texlive-latex-extra texlive-fonts-recommended graphviz; fi
2828
- if [[ $BUILD_DOCS == true ]]; then pip install sphinx numpydoc linkchecker; fi
2929
- python setup.py install

lib/matplotlib/tests/test_animation.py

Lines changed: 1 addition & 4 deletions
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)