MCPcopy Create free account
hub / github.com/numpy/numpy / p

Function p

numpy/array_api/tests/test_validation.py:8–13  ·  view source on GitHub ↗
(func: Callable, *args, **kwargs)

Source from the content-addressed store, hash-verified

6
7
8def p(func: Callable, *args, **kwargs):
9 f_sig = ", ".join(
10 [str(a) for a in args] + [f"{k}={v}" for k, v in kwargs.items()]
11 )
12 id_ = f"{func.__name__}({f_sig})"
13 return pytest.param(func, args, kwargs, id=id_)
14
15
16@pytest.mark.parametrize(

Callers 9

test_poly1d_mathMethod · 0.85
rm_fileMethod · 0.85
test_identityFunction · 0.85
test_fitFunction · 0.85
test_linspaceFunction · 0.85
test_callFunction · 0.85
test_approximationMethod · 0.85
test_compositionFunction · 0.85

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected