diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2018-02-16 13:52:45 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-16 13:52:45 -0700 |
commit | 04a87c57f672cfe6756fac2bf42d32bac351e2cf (patch) | |
tree | 86528ae565cb1115e3b999e04ba8527595087668 /numpy | |
parent | f589305da2758f28eacc33fe0e50f1c1460a4c5e (diff) | |
parent | ef387dcb3c369c513ca0e77821b029cc2c267cfa (diff) | |
download | numpy-04a87c57f672cfe6756fac2bf42d32bac351e2cf.tar.gz |
Merge pull request #10606 from charris/fix-polynomial-test
MAINT: Do not use random roots when testing roots.
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/polynomial/tests/test_classes.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/polynomial/tests/test_classes.py b/numpy/polynomial/tests/test_classes.py index 2ec8277ff..896137c9a 100644 --- a/numpy/polynomial/tests/test_classes.py +++ b/numpy/polynomial/tests/test_classes.py @@ -415,9 +415,9 @@ def check_divmod(Poly): def check_roots(Poly): - d = Poly.domain + random((2,))*.25 - w = Poly.window + random((2,))*.25 - tgt = np.sort(random((5,))) + d = Poly.domain * 1.25 + .25 + w = Poly.window + tgt = np.linspace(d[0], d[1], 5) res = np.sort(Poly.fromroots(tgt, domain=d, window=w).roots()) assert_almost_equal(res, tgt) # default domain and window |