Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix test_statistics
  • Loading branch information
vstinner committed May 26, 2026
commit 7e743a3a4573b193b0e2f3e0d692a6372b74f70f
5 changes: 5 additions & 0 deletions Lib/test/test_statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@ def approx_equal(x, y, tol=1e-12, rel=1e-7):
return actual_error <= allowed_error


skip_on_newlib = unittest.skipIf(sys.platform == 'cygwin',
'the test fails on newlib C library')


# This class exists only as somewhere to stick a docstring containing
# doctests. The following docstring and tests were originally in a separate
# module. Now that it has been merged in here, I need somewhere to hang the.
Expand Down Expand Up @@ -2799,6 +2803,7 @@ def test_sqrtprod_helper_function_fundamentals(self):
@unittest.skipIf(HAVE_DOUBLE_ROUNDING,
"accuracy not guaranteed on machines with double rounding")
@support.cpython_only # Allow for a weaker sumprod() implementation
@skip_on_newlib
def test_sqrtprod_helper_function_improved_accuracy(self):
# Test a known example where accuracy is improved
x, y, 0.7957468097636939, 0.7996498651651661
Expand Down
Loading