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

Function test_eye_errors

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

Source from the content-addressed store, hash-verified

79
80
81def test_eye_errors():
82 eye(1, device="cpu") # Doesn't error
83 assert_raises(ValueError, lambda: eye(1, device="gpu"))
84 assert_raises(ValueError, lambda: eye(1, dtype=int))
85 assert_raises(ValueError, lambda: eye(1, dtype="i"))
86
87
88def test_full_errors():

Callers

nothing calls this directly

Calls 2

assert_raisesFunction · 0.90
eyeFunction · 0.50

Tested by

no test coverage detected