We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a80ad7 commit dd1b67cCopy full SHA for dd1b67c
1 file changed
tests/conftest.py
@@ -3032,14 +3032,17 @@ def pyarrow_table_with_promoted_types(pyarrow_schema_with_promoted_types: "pa.Sc
3032
@pytest.fixture(scope="session")
3033
def ray_session() -> Generator[Any, None, None]:
3034
"""Fixture to manage Ray initialization and shutdown for tests."""
3035
+ import tempfile
3036
+
3037
import ray
3038
- ray.init(
- ignore_reinit_error=True,
3039
- runtime_env={"working_dir": None}, # Prevent Ray from serializing the working directory to workers
3040
- )
3041
- yield ray
3042
- ray.shutdown()
+ with tempfile.TemporaryDirectory() as tmpdir:
+ ray.init(
+ ignore_reinit_error=True,
+ runtime_env={"working_dir": tmpdir},
3043
+ )
3044
+ yield ray
3045
+ ray.shutdown()
3046
3047
3048
# Catalog fixtures
0 commit comments