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

Skip to content

Commit becc220

Browse files
committed
Raise tolerance on some tests
1 parent 1798c60 commit becc220

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/matplotlib/tests/test_axes.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1738,7 +1738,7 @@ def test_bxp_bad_positions():
17381738
assert_raises(ValueError, ax.bxp, logstats, positions=[2, 3])
17391739

17401740

1741-
@image_comparison(baseline_images=['boxplot', 'boxplot'])
1741+
@image_comparison(baseline_images=['boxplot', 'boxplot'], tol=1)
17421742
def test_boxplot():
17431743
x = np.linspace(-7, 7, 140)
17441744
x = np.hstack([-25, x, 25])
@@ -1797,7 +1797,7 @@ def _rc_test_bxp_helper(ax, rc_dict):
17971797
return ax
17981798

17991799
@image_comparison(baseline_images=['boxplot_rc_parameters'],
1800-
savefig_kwarg={'dpi': 100}, remove_text=True)
1800+
savefig_kwarg={'dpi': 100}, remove_text=True, tol=1)
18011801
def test_boxplot_rc_parameters():
18021802
fig, ax = plt.subplots(3)
18031803

@@ -2747,7 +2747,7 @@ def test_subplot_key_hash():
27472747

27482748
@image_comparison(baseline_images=['specgram_freqs',
27492749
'specgram_freqs_linear'],
2750-
remove_text=True, extensions=['png'])
2750+
remove_text=True, extensions=['png'], tol=0.01)
27512751
def test_specgram_freqs():
27522752
'''test axes.specgram in default (psd) mode with sinusoidal stimuli'''
27532753
n = 10000
@@ -2800,7 +2800,7 @@ def test_specgram_freqs():
28002800

28012801
@image_comparison(baseline_images=['specgram_noise',
28022802
'specgram_noise_linear'],
2803-
remove_text=True, extensions=['png'])
2803+
remove_text=True, extensions=['png'], tol=0.01)
28042804
def test_specgram_noise():
28052805
'''test axes.specgram in default (psd) mode with noise stimuli'''
28062806
np.random.seed(0)
@@ -2847,7 +2847,7 @@ def test_specgram_noise():
28472847

28482848
@image_comparison(baseline_images=['specgram_magnitude_freqs',
28492849
'specgram_magnitude_freqs_linear'],
2850-
remove_text=True, extensions=['png'])
2850+
remove_text=True, extensions=['png'], tol=0.01)
28512851
def test_specgram_magnitude_freqs():
28522852
'''test axes.specgram in magnitude mode with sinusoidal stimuli'''
28532853
n = 10000

0 commit comments

Comments
 (0)