diff options
author | Matti Picus <matti.picus@gmail.com> | 2019-11-04 17:17:36 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-04 17:17:36 -0500 |
commit | cadb066b40342a4c4e6607aa5628ab1825ed87cf (patch) | |
tree | 01397f69c7358353c94e41b9ec55f7f47bb039c8 /numpy/lib/tests/test_function_base.py | |
parent | 94a2ec0313cd7cc4024df212fb9b26c9f1eb7f6b (diff) | |
parent | d8634841223de7c482dcc6fdd5da34a79e220fe9 (diff) | |
download | numpy-cadb066b40342a4c4e6607aa5628ab1825ed87cf.tar.gz |
Merge pull request #14805 from eric-wieser/no-Fractions-from-np-scalars
TST: Don't construct Fraction instances from numpy scalars
Diffstat (limited to 'numpy/lib/tests/test_function_base.py')
-rw-r--r-- | numpy/lib/tests/test_function_base.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/lib/tests/test_function_base.py b/numpy/lib/tests/test_function_base.py index 1eae8ccfb..9075ff538 100644 --- a/numpy/lib/tests/test_function_base.py +++ b/numpy/lib/tests/test_function_base.py @@ -2523,7 +2523,7 @@ class TestPercentile(object): assert_equal(np.percentile(x, 0, interpolation='nearest'), np.nan) def test_fraction(self): - x = [Fraction(i, 2) for i in np.arange(8)] + x = [Fraction(i, 2) for i in range(8)] p = np.percentile(x, Fraction(0)) assert_equal(p, Fraction(0)) @@ -2943,7 +2943,7 @@ class TestQuantile(object): def test_fraction(self): # fractional input, integral quantile - x = [Fraction(i, 2) for i in np.arange(8)] + x = [Fraction(i, 2) for i in range(8)] q = np.quantile(x, 0) assert_equal(q, 0) |