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

Function test_full_errors

numpy/array_api/tests/test_creation_functions.py:88–92  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

86
87
88def test_full_errors():
89 full((1,), 0, device="cpu") # Doesn't error
90 assert_raises(ValueError, lambda: full((1,), 0, device="gpu"))
91 assert_raises(ValueError, lambda: full((1,), 0, dtype=int))
92 assert_raises(ValueError, lambda: full((1,), 0, dtype="i"))
93
94
95def test_full_like_errors():

Callers

nothing calls this directly

Calls 2

assert_raisesFunction · 0.90
fullFunction · 0.50

Tested by

no test coverage detected