Skip to content

Commit a7f4aa0

Browse files
Guy AmramGuy Amram
authored andcommitted
made fixes
1 parent 5c51b4f commit a7f4aa0

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

computation_graph/graph_runners.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,15 @@ async def inner(turns):
8686
assert (
8787
prev[graph.make_computation_node(sink)] == expectation
8888
), f"actual={prev[graph.make_computation_node(sink)]}\n expected: {expectation}"
89-
else:
90-
def inner(turns):
91-
prev = {}
92-
for turn, expectation in turns:
93-
prev = f(prev, turn)
94-
assert (
95-
prev[graph.make_computation_node(sink)] == expectation
96-
), f"actual={prev[graph.make_computation_node(sink)]}\n expected: {expectation}"
89+
return inner
90+
91+
def inner(turns):
92+
prev = {}
93+
for turn, expectation in turns:
94+
prev = f(prev, turn)
95+
assert (
96+
prev[graph.make_computation_node(sink)] == expectation
97+
), f"actual={prev[graph.make_computation_node(sink)]}\n expected: {expectation}"
9798

9899
return inner
99100

0 commit comments

Comments
 (0)