mirror of
https://github.com/wassname/ray.git
synced 2026-08-05 13:21:03 +08:00
cleanup tests a bit
* clean up testing
This commit is contained in:
committed by
Philipp Moritz
parent
92245360aa
commit
66032f9a50
@@ -1,5 +1,6 @@
|
||||
import sys
|
||||
import argparse
|
||||
import numpy as np
|
||||
|
||||
import arrays.single as single
|
||||
import arrays.dist as dist
|
||||
@@ -13,6 +14,15 @@ parser.add_argument("--scheduler-address", default="127.0.0.1:10001", type=str,
|
||||
parser.add_argument("--objstore-address", default="127.0.0.1:20001", type=str, help="the objstore's address")
|
||||
parser.add_argument("--worker-address", default="127.0.0.1:40001", type=str, help="the worker's address")
|
||||
|
||||
@orchpy.distributed([], [np.ndarray])
|
||||
def test_alias_f():
|
||||
return np.ones([3, 4, 5])
|
||||
|
||||
@orchpy.distributed([], [np.ndarray])
|
||||
def test_alias_g():
|
||||
return f()
|
||||
|
||||
|
||||
@orchpy.distributed([str], [str])
|
||||
def print_string(string):
|
||||
print "called print_string with", string
|
||||
|
||||
Reference in New Issue
Block a user