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

Function test_funcname_numpy_vectorize

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

funcnameFunction · 0.90

Tested by

no test coverage detected