Address review

This commit is contained in:
carbotaniuman
2020-12-21 22:29:15 -06:00
parent 0ff37540ab
commit 9faed3582a
2 changed files with 1 additions and 4 deletions

View File

@@ -1557,7 +1557,6 @@ class MathTests(unittest.TestCase):
# def test_nan_constant(self):
# self.assertTrue(math.isnan(math.nan))
# TODO: RUSTPYTHON
@requires_IEEE_754
def test_inf_constant(self):
self.assertTrue(math.isinf(math.inf))

View File

@@ -388,9 +388,7 @@ fn math_fsum(iter: PyIterable<IntoPyFloat>, vm: &VirtualMachine) -> PyResult<f64
for i in 0..partials.len() {
let mut y: f64 = partials[i];
if x.abs() < y.abs() {
let t = x;
x = y;
y = t;
std::mem::swap(&mut x, &mut y);
}
// Rounded `x+y` is stored in `hi` with round-off stored in
// `lo`. Together `hi+lo` are exactly equal to `x+y`.