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

Function test_ensure_set

dask/tests/test_utils.py:521–534  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

519
520
521def test_ensure_set():
522 s = {1}
523 assert ensure_set(s) is s
524
525 class myset(set):
526 pass
527
528 s2 = ensure_set(s, copy=True)
529 s3 = ensure_set(myset(s))
530
531 for si in (s2, s3):
532 assert type(si) is set
533 assert si is not s
534 assert si == s
535
536
537def test_itemgetter():

Callers

nothing calls this directly

Calls 2

ensure_setFunction · 0.90
mysetClass · 0.85

Tested by

no test coverage detected