Skip to content

Commit d969bd0

Browse files
committed
[test data_view] add test, that data is not converted to np.str_
1 parent aa47dd3 commit d969bd0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

nixio/test/test_data_view.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,13 @@ def test_data_view_read_2d_str_array(self):
4242
da = self.file.blocks[0].create_data_array("str_2d_array", "test", dtype=nix.DataType.String, data=data)
4343
da.append_set_dimension()
4444
da.append_set_dimension()
45-
45+
4646
dv = da.get_slice((0, 0), extents=(10, 4))
4747
npeq = np.testing.assert_equal
4848
npeq(dv.shape, da.shape)
4949
npeq(dv[:], data)
50+
for d in dv[:]:
51+
assert("numpy.str_" not in str(type(d)))
5052

5153
def test_data_view_fancy_slicing(self):
5254
da = self.file.blocks[0].data_arrays[0]

0 commit comments

Comments
 (0)