diff options
author | Nico Schlömer <nico.schloemer@gmail.com> | 2019-12-18 22:14:26 +0100 |
---|---|---|
committer | Matti Picus <matti.picus@gmail.com> | 2019-12-18 23:14:26 +0200 |
commit | 6d69a9e163858de5d0ea2ae810b8febc7eec1dbc (patch) | |
tree | b72168795c83084f309e7993d06eb91c7dbebffd /numpy/testing | |
parent | 0cea652454fdd04fb90266865792281ef5404b8c (diff) | |
download | numpy-6d69a9e163858de5d0ea2ae810b8febc7eec1dbc.tar.gz |
MAINT: Fix randint 0d limits and other 0d cleanups (#15126)
* MAINT: only treat 0d case separately in randint, simplify some tests
Diffstat (limited to 'numpy/testing')
-rw-r--r-- | numpy/testing/tests/test_utils.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/testing/tests/test_utils.py b/numpy/testing/tests/test_utils.py index 44f93a693..d14d4090c 100644 --- a/numpy/testing/tests/test_utils.py +++ b/numpy/testing/tests/test_utils.py @@ -608,9 +608,9 @@ class TestApproxEqual(object): def setup(self): self._assert_func = assert_approx_equal - def test_simple_arrays(self): - x = np.array([1234.22]) - y = np.array([1234.23]) + def test_simple_0d_arrays(self): + x = np.array(1234.22) + y = np.array(1234.23) self._assert_func(x, y, significant=5) self._assert_func(x, y, significant=6) |