Skip to content

Commit e1d7982

Browse files
committed
Update attribute test
1 parent 6b422f1 commit e1d7982

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

tiledb/tests/test_attribute.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,13 +199,18 @@ def test_datetime_attribute(self):
199199
assert attr.dtype != np.dtype(np.datetime64)
200200

201201
@pytest.mark.parametrize("dtype", ["ascii", "blob", "wkb", "wkt"])
202-
def test_nonnumpy_dtype_attribute(self, dtype):
202+
def test_nonnumpy_dtype_attribute(self, dtype, capfd):
203203
# Do not test wkb/wkt if not yet implemented in linked libtiledb.
204204
if not hasattr(tiledb.cc.DataType, "GEOM_WKB") and (
205205
dtype == "wkb" or dtype == "wkt"
206206
):
207207
return
208-
attr = tiledb.Attr("non-numpy_dtype", dtype=dtype)
208+
attr = tiledb.Attr("example_attr", dtype=dtype)
209+
self.assertEqual(attr, attr)
210+
211+
attr.dump()
212+
assert_captured(capfd, "Name: example_attr")
213+
209214
self.assertEqual(attr, attr)
210215

211216
@pytest.mark.parametrize("sparse", [True, False])

0 commit comments

Comments
 (0)