# HG changeset patch # User Paul Fisher # Date 1569634967 14400 # Node ID 1abd0cc4caa492a4efcbfd6befd2175ea90d114f # Parent d961c8a93d6b3ee248f1d8bacdbd251ac5d2bba8 reader_test: use the value one up from the median when even. diff -r d961c8a93d6b -r 1abd0cc4caa4 weatherlog/reader_test.py --- a/weatherlog/reader_test.py Fri Sep 27 21:38:23 2019 -0400 +++ b/weatherlog/reader_test.py Fri Sep 27 21:42:47 2019 -0400 @@ -44,7 +44,7 @@ perms_less = itertools.permutations((1.0, 1.5)) for perm in perms_less: self.assertEqual( - reader._last_stable(perm, epsilon=0.51, count=2), 1.0) + reader._last_stable(perm, epsilon=0.51, count=2), 1.5) if __name__ == '__main__':