Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
eyurtsev committed Sep 6, 2024
1 parent 6466cc6 commit ce7870f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/unit_tests/test_server_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -599,10 +599,15 @@ async def test_ainvoke(async_remote_runnable: RemoteRunnable) -> None:
assert remote_runnable_run.name == "RemoteRunnable"

assert remote_runnable_run.child_runs[0].name == "add_one_or_passthrough"
elif sys.version_info <= (3, 9):
elif sys.version_info < (3, 10):
assert len(tracer.runs) == 1
remote_runnable = tracer.runs[0]
assert remote_runnable.child_runs[0].extras == "add_one_or_passthrough"
assert (
remote_runnable.child_runs[0].extra["kwargs"]["name"]
== "add_one_or_passthrough"
)
else:
raise AssertionError(f"Unsupported python version {sys.version_info}")


async def test_abatch(async_remote_runnable: RemoteRunnable) -> None:
Expand Down

0 comments on commit ce7870f

Please sign in to comment.