Skip to content

Commit 5151e2a

Browse files
committed
move else to try
1 parent f30e891 commit 5151e2a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

taskvine/test/vine_python_future_module.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,10 @@ def main():
9090

9191
try:
9292
future.result(timeout=1)
93+
raise RuntimeError("TimeoutError was not raised correctly.")
9394
except TimeoutError:
9495
future.cancel()
9596
print("timeout raised correctly")
96-
else:
97-
raise RuntimeError("TimeoutError was not raised correctly.")
9897

9998
# # Test error handling with wait
10099
t1 = executor.future_task(my_sum, 7, 4)

0 commit comments

Comments
 (0)