Skip to content

Commit 5e6f9a7

Browse files
stephanie-wangpcmoritz
authored andcommitted
Fix test for python3
1 parent dfdeae4 commit 5e6f9a7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/runtest.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1149,17 +1149,17 @@ def g(i):
11491149
ray.get([g.remote(i) for i in range(100)])
11501150

11511151
@ray.remote
1152-
def _sleep(i, j):
1152+
def _sleep(i):
11531153
time.sleep(1)
1154-
return (i, j)
1154+
return (i)
11551155

11561156
@ray.remote
1157-
def sleep(i):
1157+
def sleep():
11581158
# Each instance of sleep submits and blocks on the result of another
11591159
# remote task, which takes one second to execute.
1160-
ray.get([_sleep.remote(i, j) for j in range(10)])
1160+
ray.get([_sleep.remote(i) for i in range(10)])
11611161

1162-
ray.get(sleep.remote(i))
1162+
ray.get(sleep.remote())
11631163

11641164
ray.worker.cleanup()
11651165

0 commit comments

Comments
 (0)