File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
1
import sys
2
- PYTHON27 = sys .version_info .major == 2
3
2
4
3
import numpy
5
4
import matplotlib .pyplot as plt
15
14
from probscale .probscale import _minimal_norm
16
15
17
16
17
+ PYTHON27 = sys .version_info .major == 2
18
+ TOLERANCE = 22
19
+
20
+
18
21
@pytest .fixture
19
22
def mn ():
20
23
return _minimal_norm ()
@@ -72,7 +75,7 @@ def test_minimal_norm_cdf(mn, mn_input):
72
75
73
76
@pytest .mark .mpl_image_compare (
74
77
baseline_dir = 'baseline_images/test_probscale' ,
75
- tolerance = 15
78
+ tolerance = TOLERANCE
76
79
)
77
80
@pytest .mark .skipif (PYTHON27 , reason = "legacy python" )
78
81
def test_the_scale_default ():
@@ -85,7 +88,7 @@ def test_the_scale_default():
85
88
86
89
@pytest .mark .mpl_image_compare (
87
90
baseline_dir = 'baseline_images/test_probscale' ,
88
- tolerance = 15
91
+ tolerance = TOLERANCE
89
92
)
90
93
def test_the_scale_not_as_pct ():
91
94
fig , ax = plt .subplots (figsize = (4 , 8 ))
You can’t perform that action at this time.
0 commit comments