File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -115,12 +115,12 @@ def test_sum_mean(list1, list2):
115
115
116
116
ab = a + b
117
117
assert ab .value == approx (c .value )
118
- assert ab .variance == approx (c .variance )
118
+ assert ab .variance == approx (c .variance , nan_ok = True )
119
119
assert ab .count == approx (c .count )
120
120
121
121
a += b
122
122
assert a .value == approx (c .value )
123
- assert a .variance == approx (c .variance )
123
+ assert a .variance == approx (c .variance , nan_ok = True )
124
124
assert a .count == approx (c .count )
125
125
126
126
@@ -151,12 +151,12 @@ def test_sum_weighed_mean(pair1, pair2):
151
151
152
152
ab = a + b
153
153
assert ab .value == approx (c .value )
154
- assert ab .variance == approx (c .variance )
154
+ assert ab .variance == approx (c .variance , nan_ok = True )
155
155
assert ab .sum_of_weights == approx (c .sum_of_weights )
156
156
assert ab .sum_of_weights_squared == approx (c .sum_of_weights_squared )
157
157
158
158
a += b
159
159
assert a .value == approx (c .value )
160
- assert a .variance == approx (c .variance )
160
+ assert a .variance == approx (c .variance , nan_ok = True )
161
161
assert a .sum_of_weights == approx (c .sum_of_weights )
162
162
assert a .sum_of_weights_squared == approx (c .sum_of_weights_squared )
You can’t perform that action at this time.
0 commit comments