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

Function test_issignedinf

dask/array/tests/test_ufunc.py:341–347  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

339
340
341def test_issignedinf():
342 with np.errstate(invalid="ignore", divide="ignore"):
343 arr = np.random.randint(-1, 2, size=(20, 20)).astype(float) / 0
344 darr = da.from_array(arr, 3)
345
346 assert_eq(np.isneginf(arr), da.isneginf(darr))
347 assert_eq(np.isposinf(arr), da.isposinf(darr))
348
349
350@pytest.mark.parametrize("func", ["i0", "sinc", "nan_to_num"])

Callers

nothing calls this directly

Calls 3

assert_eqFunction · 0.90
astypeMethod · 0.45
randintMethod · 0.45

Tested by

no test coverage detected