|
29 | 29 | import warnings |
30 | 30 | from matplotlib.cbook import IgnoredKeywordWarning |
31 | 31 |
|
32 | | -import sys |
33 | | -on_win = (sys.platform == 'win32') |
34 | 32 |
|
35 | 33 | # Note: Some test cases are run twice: once normally and once with labeled data |
36 | 34 | # These two must be defined in the same test function or need to have |
@@ -2766,7 +2764,7 @@ def test_subplot_key_hash(): |
2766 | 2764 | @image_comparison(baseline_images=['specgram_freqs', |
2767 | 2765 | 'specgram_freqs_linear'], |
2768 | 2766 | remove_text=True, extensions=['png'], |
2769 | | - tol=0.07 if on_win else 0.03) |
| 2767 | + tol=0.07) |
2770 | 2768 | def test_specgram_freqs(): |
2771 | 2769 | '''test axes.specgram in default (psd) mode with sinusoidal stimuli''' |
2772 | 2770 | n = 10000 |
@@ -2867,7 +2865,7 @@ def test_specgram_noise(): |
2867 | 2865 | @image_comparison(baseline_images=['specgram_magnitude_freqs', |
2868 | 2866 | 'specgram_magnitude_freqs_linear'], |
2869 | 2867 | remove_text=True, extensions=['png'], |
2870 | | - tol=0.07 if on_win else 0.03) |
| 2868 | + tol=0.07) |
2871 | 2869 | def test_specgram_magnitude_freqs(): |
2872 | 2870 | '''test axes.specgram in magnitude mode with sinusoidal stimuli''' |
2873 | 2871 | n = 10000 |
@@ -2969,7 +2967,7 @@ def test_specgram_magnitude_noise(): |
2969 | 2967 |
|
2970 | 2968 | @image_comparison(baseline_images=['specgram_angle_freqs'], |
2971 | 2969 | remove_text=True, extensions=['png'], |
2972 | | - tol=0.007 if on_win else 0) |
| 2970 | + tol=0.007) |
2973 | 2971 | def test_specgram_angle_freqs(): |
2974 | 2972 | '''test axes.specgram in angle mode with sinusoidal stimuli''' |
2975 | 2973 | n = 10000 |
|
0 commit comments