Skip to content

Commit 7e743a3

Browse files
committed
Fix test_statistics
1 parent cd77dae commit 7e743a3

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Lib/test/test_statistics.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,10 @@ def approx_equal(x, y, tol=1e-12, rel=1e-7):
138138
return actual_error <= allowed_error
139139

140140

141+
skip_on_newlib = unittest.skipIf(sys.platform == 'cygwin',
142+
'the test fails on newlib C library')
143+
144+
141145
# This class exists only as somewhere to stick a docstring containing
142146
# doctests. The following docstring and tests were originally in a separate
143147
# module. Now that it has been merged in here, I need somewhere to hang the.
@@ -2799,6 +2803,7 @@ def test_sqrtprod_helper_function_fundamentals(self):
27992803
@unittest.skipIf(HAVE_DOUBLE_ROUNDING,
28002804
"accuracy not guaranteed on machines with double rounding")
28012805
@support.cpython_only # Allow for a weaker sumprod() implementation
2806+
@skip_on_newlib
28022807
def test_sqrtprod_helper_function_improved_accuracy(self):
28032808
# Test a known example where accuracy is improved
28042809
x, y, target = 0.8035720646477457, 0.7957468097636939, 0.7996498651651661

0 commit comments

Comments
 (0)