MCPcopy Create free account
hub / github.com/dask/dask / test_funcname_numpy_vectorize

Function test_funcname_numpy_vectorize

dask/tests/test_utils.py:474–484  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

472
473
474def test_funcname_numpy_vectorize():
475 np = pytest.importorskip("numpy")
476
477 vfunc = np.vectorize(int)
478 assert funcname(vfunc) == "vectorize_int"
479
480 # Regression test for https://github.com/pydata/xarray/issues/3303
481 # Partial functions don't have a __name__ attribute
482 func = functools.partial(np.add, out=None)
483 vfunc = np.vectorize(func)
484 assert funcname(vfunc) == "vectorize_add"
485
486
487def test_ndeepmap():

Callers

nothing calls this directly

Calls 1

funcnameFunction · 0.90

Tested by

no test coverage detected