TST: Increase some tolerances for non-x86_64 architectures by QuLogic · Pull Request #31946 · matplotlib/matplotlib · GitHub
Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
10 changes: 5 additions & 5 deletions lib/matplotlib/tests/test_axes.py
2 changes: 1 addition & 1 deletion lib/matplotlib/tests/test_figure.py
Original file line number Diff line number Diff line change
Expand Up @@ -1397,7 +1397,7 @@ def test_subfigure_dpi():

@image_comparison(['test_subfigure_ss.png'], style='mpl20',
savefig_kwarg={'facecolor': 'teal'},
tol=0.022 if sys.platform == 'darwin' else 0)
tol=0 if platform.machine() == 'x86_64' else 0.022)
def test_subfigure_ss():
# test assigning the subfigure via subplotspec
np.random.seed(19680801)
Expand Down
5 changes: 2 additions & 3 deletions lib/matplotlib/tests/test_legend.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import io
import itertools
import platform
import sys
import time
from unittest import mock
import warnings
Expand Down Expand Up @@ -203,7 +202,7 @@ def test_alpha_rcparam():


@image_comparison(['fancy.png'], remove_text=True, style='mpl20',
tol=0.01 if sys.platform == 'darwin' else 0)
tol=0 if platform.machine() == 'x86_64' else 0.01)
def test_fancy():
# using subplot triggers some offsetbox functionality untested elsewhere
plt.subplot(121)
Expand Down Expand Up @@ -665,7 +664,7 @@ def test_empty_bar_chart_with_legend():


@image_comparison(['shadow_argument_types.png'], remove_text=True, style='mpl20',
tol=0.028 if sys.platform == 'darwin' else 0)
tol=0 if platform.machine() == 'x86_64' else 0.028)
def test_shadow_argument_types():
# Test that different arguments for shadow work as expected
fig, ax = plt.subplots()
Expand Down
6 changes: 3 additions & 3 deletions lib/matplotlib/tests/test_patheffects.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import sys
import platform

import numpy as np

Expand Down Expand Up @@ -30,7 +30,7 @@ def test_patheffect1():


@image_comparison(['patheffect2'], remove_text=True, style='mpl20',
tol=0.051 if sys.platform == 'darwin' else 0)
tol=0 if platform.machine() == 'x86_64' else 0.051)
def test_patheffect2():

ax2 = plt.subplot()
Expand All @@ -46,7 +46,7 @@ def test_patheffect2():


@image_comparison(['patheffect3'], style='mpl20',
tol=0.02 if sys.platform == 'darwin' else 0)
tol=0 if platform.machine() == 'x86_64' else 0.02)
def test_patheffect3():
plt.figure(figsize=(8, 6))
p1, = plt.plot([1, 3, 5, 4, 3], 'o-b', lw=4)
Expand Down
6 changes: 3 additions & 3 deletions lib/matplotlib/tests/test_polar.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import sys
import platform

import numpy as np
from numpy.testing import assert_allclose
Expand All @@ -12,7 +12,7 @@


@image_comparison(['polar_axes.png'], style='default',
tol=0.009 if sys.platform == 'darwin' else 0)
tol=0 if platform.machine() == 'x86_64' else 0.009)
def test_polar_annotations():
# You can specify the xypoint and the xytext in different positions and
# coordinate systems, and optionally turn on a connecting line and mark the
Expand Down Expand Up @@ -47,7 +47,7 @@ def test_polar_annotations():


@image_comparison(['polar_coords.png'], style='default', remove_text=True,
tol=0.013 if sys.platform == 'darwin' else 0)
tol=0 if platform.machine() == 'x86_64' else 0.013)
def test_polar_coord_annotations():
# You can also use polar notation on a cartesian axes. Here the native
# coordinate system ('data') is cartesian, so you need to specify the
Expand Down
2 changes: 1 addition & 1 deletion lib/mpl_toolkits/mplot3d/tests/test_axes3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -1722,7 +1722,7 @@ def test_errorbar3d_errorevery():


@mpl3d_image_comparison(['errorbar3d.png'], style='mpl20',
tol=0.015 if sys.platform == 'darwin' else 0)
tol=0 if platform.machine() == 'x86_64' else 0.015)
def test_errorbar3d():
"""Tests limits, color styling, and legend for 3D errorbars."""
fig = plt.figure()
Expand Down
4 changes: 2 additions & 2 deletions lib/mpl_toolkits/mplot3d/tests/test_legend3d.py
Loading