Skip to content

Commit

Permalink
Fix test failures in actor_test.py. (ray-project#317)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertnishihara authored and pcmoritz committed Mar 2, 2017
1 parent 793a102 commit 39b7abe
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/actor_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ def h(self, object_ids):

def testDefineActorWithinActor(self):
# Make sure we can use remote funtions within actors.
ray.init()
ray.init(num_cpus=10)

@ray.actor
class Actor1(object):
Expand Down Expand Up @@ -337,7 +337,7 @@ def get_values(self, z):
# error.
# def testUseActorWithinActor(self):
# # Make sure we can use remote funtions within actors.
# ray.init()
# ray.init(num_cpus=10)
#
# @ray.actor
# class Actor1(object):
Expand All @@ -362,7 +362,7 @@ def get_values(self, z):

def testDefineActorWithinRemoteFunction(self):
# Make sure we can define and actors within remote funtions.
ray.init()
ray.init(num_cpus=10)

@ray.remote
def f(x, n):
Expand All @@ -383,7 +383,7 @@ def get_value(self):
# This test currently fails with a pickling error.
# def testUseActorWithinRemoteFunction(self):
# # Make sure we can create and use actors within remote funtions.
# ray.init()
# ray.init(num_cpus=10)
#
# @ray.actor
# class Actor1(object):
Expand All @@ -405,7 +405,7 @@ def testActorImportCounter(self):
# This is mostly a test of the export counters to make sure that when an
# actor is imported, all of the necessary remote functions have been
# imported.
ray.init()
ray.init(num_cpus=10)

# Export a bunch of remote functions.
num_remote_functions = 50
Expand Down

0 comments on commit 39b7abe

Please sign in to comment.