Skip to content
Merged
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
TST: up tolerance for test_specgram_freqs
* [ ]: matplotlib.tests.test_axes.test_specgram_freqs.test (RMS 0.042) (x64,35)
* [ ]: matplotlib.tests.test_axes.test_specgram_freqs.test (RMS 0.042) (x64,35)
* [ ]: matplotlib.tests.test_axes.test_specgram_magnitude_freqs.test (RMS 0.042) (x64,35)
* [ ]: matplotlib.tests.test_axes.test_specgram_magnitude_freqs.test (RMS 0.042) (x64,35)

-> before set to 0.03, set tolerance to 0.05 on windows
  • Loading branch information
jankatins committed Jan 27, 2016
commit 1f843d4d29f6482fc4a0e3ee9c7f23a20b4e8c2f
9 changes: 7 additions & 2 deletions lib/matplotlib/tests/test_axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
import warnings
from matplotlib.cbook import IgnoredKeywordWarning

import sys
on_win = (sys.platform == 'win32')

# Note: Some test cases are run twice: once normally and once with labeled data
# These two must be defined in the same test function or need to have
# different baseline images to prevent race conditions when nose runs
Expand Down Expand Up @@ -2749,7 +2752,8 @@ def test_subplot_key_hash():

@image_comparison(baseline_images=['specgram_freqs',
'specgram_freqs_linear'],
remove_text=True, extensions=['png'], tol=0.03)
remove_text=True, extensions=['png'],
tol=0.05 if on_win else 0.03)
def test_specgram_freqs():
'''test axes.specgram in default (psd) mode with sinusoidal stimuli'''
n = 10000
Expand Down Expand Up @@ -2849,7 +2853,8 @@ def test_specgram_noise():

@image_comparison(baseline_images=['specgram_magnitude_freqs',
'specgram_magnitude_freqs_linear'],
remove_text=True, extensions=['png'], tol=0.03)
remove_text=True, extensions=['png'],
tol=0.05 if on_win else 0.03)
def test_specgram_magnitude_freqs():
'''test axes.specgram in magnitude mode with sinusoidal stimuli'''
n = 10000
Expand Down