New submission from Serhiy Storchaka <storchaka+cpyt...@gmail.com>:
$ ./python -m test -v test_time test_statistics ... ====================================================================== FAIL: test_decimals_exact (test.test_statistics.TestHarmonicMean) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/serhiy/py/cpython/Lib/test/test_statistics.py", line 1484, in test_decimals_exact self.assertEqual(self.func(data), D(66528)/70723) AssertionError: Decimal('0.9406840773157247288717955969') != Decimal('0.9406840773157247288717955970') ====================================================================== FAIL: test_repeated_single_value (test.test_statistics.TestHarmonicMean) (x=Decimal('4.125'), count=2) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/serhiy/py/cpython/Lib/test/test_statistics.py", line 1332, in test_repeated_single_value self.assertEqual(self.func(data), x) AssertionError: Decimal('4.124999999999999999999999999') != Decimal('4.125') ====================================================================== FAIL: test_repeated_single_value (test.test_statistics.TestHarmonicMean) (x=Decimal('4.125'), count=5) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/serhiy/py/cpython/Lib/test/test_statistics.py", line 1332, in test_repeated_single_value self.assertEqual(self.func(data), x) AssertionError: Decimal('4.124999999999999999999999999') != Decimal('4.125') ====================================================================== FAIL: test_repeated_single_value (test.test_statistics.TestHarmonicMean) (x=Decimal('4.125'), count=10) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/serhiy/py/cpython/Lib/test/test_statistics.py", line 1332, in test_repeated_single_value self.assertEqual(self.func(data), x) AssertionError: Decimal('4.124999999999999999999999999') != Decimal('4.125') ====================================================================== FAIL: test_repeated_single_value (test.test_statistics.TestHarmonicMean) (x=Decimal('4.125'), count=20) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/serhiy/py/cpython/Lib/test/test_statistics.py", line 1332, in test_repeated_single_value self.assertEqual(self.func(data), x) AssertionError: Decimal('4.124999999999999999999999999') != Decimal('4.125') ---------------------------------------------------------------------- ---------- components: Tests messages: 322098 nosy: serhiy.storchaka priority: normal severity: normal status: open title: test_statistics fails after test_time type: behavior versions: Python 3.8 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue34179> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com