Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions tests/test_graphplan.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,12 @@ def test_rush_hour_optimized():
verify_solution(rush_hour_optimized())


def test_planner_leveloff():
def run_planner_in_queue(problem, queue):
queue.put(Linearize(problem).execute())
def run_planner_in_queue(problem, queue):
"""Put the plan of the problem in the queue; at module level, so that it can be pickled."""
queue.put(Linearize(problem).execute())


def test_planner_leveloff():
p = blocks_world(
'On(A, Table) & On(B, Table) & On(C, Table) & Clear(A) & Clear(B) & Clear(C)',
'On(A, B) & On(B, C) & On(C, A)',
Expand Down
Loading