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

Function test_validate_key

dask/tests/test_core.py:72–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70
71
72def test_validate_key():
73 validate_key(1)
74 validate_key(("x", 1))
75 with pytest.raises(TypeError, match="Unexpected key type.*list"):
76 validate_key(["x", 1])
77
78 with pytest.raises(TypeError, match="unexpected key type at index=1"):
79 validate_key((2, int))
80
81
82def test_istask():

Callers

nothing calls this directly

Calls 1

validate_keyFunction · 0.90

Tested by

no test coverage detected