MCPcopy Create free account
hub / github.com/PyO3/rust-numpy / test_hasobject_flag

Function test_hasobject_flag

src/array.rs:1757–1764  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1755
1756 #[test]
1757 fn test_hasobject_flag() {
1758 Python::attach(|py| {
1759 let array: Bound<'_, PyArray<Py<PyAny>, _>> =
1760 PyArray1::from_slice(py, &[PyList::empty(py).into()]);
1761
1762 py_run!(py, array, "assert array.dtype.hasobject");
1763 });
1764 }
1765}

Callers

nothing calls this directly

Calls 1

from_sliceFunction · 0.85

Tested by

no test coverage detected