mirror of
https://github.com/wassname/ray.git
synced 2026-06-27 18:44:07 +08:00
[dask-on-ray] Fix Dask-on-Ray test: Python 3 dictionary .values() is a view, and is not indexable (#13945)
This commit is contained in:
@@ -35,7 +35,9 @@ def test_ray_dask_basic(ray_start_regular_shared):
|
||||
def test_ray_dask_persist(ray_start_regular_shared):
|
||||
arr = da.ones(5) + 2
|
||||
result = arr.persist(scheduler=ray_dask_get)
|
||||
np.testing.assert_array_equal(result.dask.values()[0], np.ones(5) + 2)
|
||||
np.testing.assert_array_equal(
|
||||
next(iter(result.dask.values())),
|
||||
np.ones(5) + 2)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user