chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 13:17:40 +08:00
commit f1825c8ceb
10096 changed files with 2364182 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
import sys
import pytest
import ray
import ray.cluster_utils
def test_cross_language_raise_kwargs(shutdown_only):
ray.init(job_config=ray.job_config.JobConfig(code_search_path=sys.path))
with pytest.raises(Exception, match="kwargs"):
ray.cross_language.java_function("a", "b").remote(x="arg1")
with pytest.raises(Exception, match="kwargs"):
ray.cross_language.java_actor_class("a").remote(x="arg1")
def test_cross_language_raise_exception(shutdown_only):
ray.init(job_config=ray.job_config.JobConfig(code_search_path=sys.path))
class PythonObject(object):
pass
with pytest.raises(Exception, match="transfer"):
ray.cross_language.java_function("a", "b").remote(PythonObject())
if __name__ == "__main__":
sys.exit(pytest.main(["-sv", __file__]))