cleanup tests a bit

* clean up testing
This commit is contained in:
Robert Nishihara
2016-04-05 00:34:23 -07:00
committed by Philipp Moritz
parent 92245360aa
commit 66032f9a50
4 changed files with 92 additions and 215 deletions
+10
View File
@@ -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