()
| 470 | |
| 471 | |
| 472 | def test_funcname_numpy_vectorize(): |
| 473 | np = pytest.importorskip("numpy") |
| 474 | |
| 475 | vfunc = np.vectorize(int) |
| 476 | assert funcname(vfunc) == "vectorize_int" |
| 477 | |
| 478 | # Regression test for https://github.com/pydata/xarray/issues/3303 |
| 479 | # Partial functions don't have a __name__ attribute |
| 480 | func = functools.partial(np.add, out=None) |
| 481 | vfunc = np.vectorize(func) |
| 482 | assert funcname(vfunc) == "vectorize_add" |
| 483 | |
| 484 | |
| 485 | def test_ndeepmap(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…