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