MCPcopy Create free account
hub / github.com/PythonOT/POT / test_get_backend_none

Function test_get_backend_none

test/test_backend.py:825–830  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

823
824
825def test_get_backend_none():
826 a, b = np.zeros((2, 3)), None
827 nx = get_backend(a, b)
828 assert str(nx) == "numpy"
829 with pytest.raises(ValueError):
830 get_backend(None, None)

Callers

nothing calls this directly

Calls 2

get_backendFunction · 0.90
zerosMethod · 0.45

Tested by

no test coverage detected