|
42 | 42 | import dask
|
43 | 43 | import dask.bag as db
|
44 | 44 | from dask import delayed
|
45 |
| -from dask.optimization import SubgraphCallable |
46 | 45 | from dask.tokenize import tokenize
|
47 | 46 | from dask.utils import get_default_shuffle_method, parse_timedelta, tmpfile
|
48 | 47 |
|
@@ -2627,13 +2626,6 @@ async def test_futures_of_get(c, s, a, b):
|
2627 | 2626 | b = db.Bag({("b", i): f for i, f in enumerate([x, y, z])}, "b", 3)
|
2628 | 2627 | assert set(futures_of(b)) == {x, y, z}
|
2629 | 2628 |
|
2630 |
| - sg = SubgraphCallable( |
2631 |
| - {"x": x, "y": y, "z": z, "out": (add, (add, (add, x, y), z), "in")}, |
2632 |
| - "out", |
2633 |
| - ("in",), |
2634 |
| - ) |
2635 |
| - assert set(futures_of(sg)) == {x, y, z} |
2636 |
| - |
2637 | 2629 |
|
2638 | 2630 | def test_futures_of_class():
|
2639 | 2631 | pytest.importorskip("numpy")
|
@@ -6192,43 +6184,6 @@ async def test_profile_bokeh(c, s, a, b):
|
6192 | 6184 | assert os.path.exists(fn)
|
6193 | 6185 |
|
6194 | 6186 |
|
6195 |
| -@gen_cluster(client=True, nthreads=[("", 1)]) |
6196 |
| -async def test_get_mix_futures_and_SubgraphCallable(c, s, a): |
6197 |
| - future = c.submit(add, 1, 2) |
6198 |
| - |
6199 |
| - subgraph = SubgraphCallable( |
6200 |
| - {"_2": (add, "_0", "_1"), "_3": (add, future, "_2")}, |
6201 |
| - "_3", |
6202 |
| - ("_0", "_1"), |
6203 |
| - ) |
6204 |
| - dsk = { |
6205 |
| - "a": 1, |
6206 |
| - "b": 2, |
6207 |
| - "c": (subgraph, "a", "b"), |
6208 |
| - "d": (subgraph, "c", "b"), |
6209 |
| - } |
6210 |
| - |
6211 |
| - future2 = c.get(dsk, "d", sync=False) |
6212 |
| - result = await future2 |
6213 |
| - assert result == 11 |
6214 |
| - |
6215 |
| - # Nested subgraphs |
6216 |
| - subgraph2 = SubgraphCallable( |
6217 |
| - { |
6218 |
| - "_2": (subgraph, "_0", "_1"), |
6219 |
| - "_3": (subgraph, "_2", "_1"), |
6220 |
| - "_4": (add, "_3", future2), |
6221 |
| - }, |
6222 |
| - "_4", |
6223 |
| - ("_0", "_1"), |
6224 |
| - ) |
6225 |
| - |
6226 |
| - dsk2 = {"e": 1, "f": 2, "g": (subgraph2, "e", "f")} |
6227 |
| - |
6228 |
| - result = await c.get(dsk2, "g", sync=False) |
6229 |
| - assert result == 22 |
6230 |
| - |
6231 |
| - |
6232 | 6187 | @gen_cluster(client=True)
|
6233 | 6188 | async def test_get_mix_futures_and_SubgraphCallable_dask_dataframe(c, s, a, b):
|
6234 | 6189 | pd = pytest.importorskip("pandas")
|
|
0 commit comments