Skip to content

Fix failing tests on maintenance branch #779

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Mar 22, 2012
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Mark 4 failing tests with old freetype versions
  • Loading branch information
mdboom committed Mar 22, 2012
commit 8f111bd57de1fcdc0122b3e251630869b7249d51
9 changes: 6 additions & 3 deletions lib/matplotlib/tests/test_axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,8 @@ def test_polar_wrap():
plt.polar( [358*D2R, 2*D2R], [0.2, 0.1], "r.-" )
plt.rgrids( [0.05, 0.1, 0.15, 0.2, 0.25, 0.3] )

@image_comparison(baseline_images=['polar_units', 'polar_units_2'])
@image_comparison(baseline_images=['polar_units', 'polar_units_2'],
freetype_version=('2.4.5', '2.4.9'))
def test_polar_units():
import matplotlib.testing.jpl_units as units
from nose.tools import assert_true
Expand Down Expand Up @@ -553,7 +554,8 @@ def test_canonical():
ax.plot([1,2,3])


@image_comparison(baseline_images=['arc_ellipse'])
@image_comparison(baseline_images=['arc_ellipse'],
freetype_version=('2.4.5', '2.4.9'))
def test_arc_ellipse():
from matplotlib import patches
xcenter, ycenter = 0.38, 0.52
Expand Down Expand Up @@ -614,7 +616,8 @@ def test_markevery():
ax.plot(x, y, '+', markevery=(5, 20), label='mark every 5 starting at 10')
ax.legend()

@image_comparison(baseline_images=['markevery_line'])
@image_comparison(baseline_images=['markevery_line'],
freetype_version=('2.4.5', '2.4.9'))
def test_markevery_line():
x = np.linspace(0, 10, 100)
y = np.sin(x) * np.sqrt(x/10 + 0.5)
Expand Down
3 changes: 2 additions & 1 deletion lib/matplotlib/tests/test_tightlayout.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ def test_tight_layout3():
plt.tight_layout()


@image_comparison(baseline_images=['tight_layout4'])
@image_comparison(baseline_images=['tight_layout4'],
freetype_version=('2.4.5', '2.4.9'))
def test_tight_layout4():
'Test tight_layout for subplot2grid'

Expand Down