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

Function test_map_with_iterator_function

dask/bag/tests/test_bag.py:1105–1114  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1103
1104
1105def test_map_with_iterator_function():
1106 b = db.from_sequence([[1, 2, 3], [4, 5, 6]], npartitions=2)
1107
1108 def f(L):
1109 for x in L:
1110 yield x + 1
1111
1112 c = b.map(f)
1113
1114 assert list(c) == [[2, 3, 4], [5, 6, 7]]
1115
1116
1117def test_ensure_compute_output_is_concrete():

Callers

nothing calls this directly

Calls 1

mapMethod · 0.45

Tested by

no test coverage detected