()
| 473 | |
| 474 | |
| 475 | def 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 | |
| 488 | def test_ndeepmap(): |
nothing calls this directly
no test coverage detected