summaryrefslogtreecommitdiff
path: root/numpy/core/src
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2018-02-16 10:35:08 -0700
committerCharles Harris <charlesr.harris@gmail.com>2018-02-16 10:35:08 -0700
commitef387dcb3c369c513ca0e77821b029cc2c267cfa (patch)
treee3cfb46f829c766dc43b3fd76eb6d6a468ac3f27 /numpy/core/src
parent5c5a215fa1101479ae9b8d127be32679c9f3f105 (diff)
downloadnumpy-ef387dcb3c369c513ca0e77821b029cc2c267cfa.tar.gz
MAINT: Do not use random when testing roots.
The `check_roots` function in numpy/polynomial/tests/test_classes.py was using random numbers without a seed to generate the random roots to be checked. This made the test sensitive to the random state, with the result that currently two of the roots are close together and fail the test to the default seven digit precision when running on the Mac. The failure is probably due to a combination of library and compiler differences between the Mac and the other platforms tested.. The fix here is to hardwire the test values rather than use random numbers.
Diffstat (limited to 'numpy/core/src')
0 files changed, 0 insertions, 0 deletions