8000 Add test for issue #2798 · certik/numpy@a21d440 · GitHub
[go: up one dir, main page]

Skip to content

Commit a21d440

Browse files
cgohlkecertik
authored andcommitted
Add test for issue numpy#2798
1 parent 92fc1eb commit a21d440

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

numpy/core/tests/test_dtype.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,11 @@ def test_dtype_str_with_long_in_shape(self):
443443
# Pull request #376
444444
dt = np.dtype('(1L,)i4')
445445

446+
def test_base_dtype_with_object_type(self):
447+
# Issue #2798
448+
# ValueError: low level cast function is for unequal type numbers
449+
a = np.array(['a'], dtype='O').astype(('O', [('name', 'O')]))
450+
446451

447452
class TestDtypeAttributeDeletion(object):
448453

0 commit comments

Comments
 (0)
0