summaryrefslogtreecommitdiff
path: root/numpy/core
diff options
context:
space:
mode:
authorNathan Goldbaum <nathan.goldbaum@gmail.com>2023-05-03 09:33:42 -0600
committerNathan Goldbaum <nathan.goldbaum@gmail.com>2023-05-03 09:33:42 -0600
commitbe08e88c544ce6e1df093f649a3d9afbce9c4171 (patch)
treeba62a3afea5aaa8600b8c2ed5c2455795aff6328 /numpy/core
parent905d37ee1c9ebdb0ce37e1bb190a64480b4b1315 (diff)
downloadnumpy-be08e88c544ce6e1df093f649a3d9afbce9c4171.tar.gz
TST: test object dtype in test_repeat
Diffstat (limited to 'numpy/core')
-rw-r--r--numpy/core/tests/test_multiarray.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/numpy/core/tests/test_multiarray.py b/numpy/core/tests/test_multiarray.py
index 984047c87..196c2dc13 100644
--- a/numpy/core/tests/test_multiarray.py
+++ b/numpy/core/tests/test_multiarray.py
@@ -1934,8 +1934,9 @@ class TestMethods:
assert_array_equal(a2.prod(axis=-1),
np.array([24, 1890, 600], ctype))
- def test_repeat(self):
- m = np.array([1, 2, 3, 4, 5, 6])
+ @pytest.mark.parametrize('dtype', [None, object])
+ def test_repeat(self, dtype):
+ m = np.array([1, 2, 3, 4, 5, 6], dtype=dtype)
m_rect = m.reshape((2, 3))
A = m.repeat([1, 3, 2, 1, 1, 2])