Skip to content

Commit dd1b67c

Browse files
committed
workaround for uv _is_path() helper now strictly requiring a string
1 parent 6a80ad7 commit dd1b67c

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

tests/conftest.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3032,14 +3032,17 @@ def pyarrow_table_with_promoted_types(pyarrow_schema_with_promoted_types: "pa.Sc
30323032
@pytest.fixture(scope="session")
30333033
def ray_session() -> Generator[Any, None, None]:
30343034
"""Fixture to manage Ray initialization and shutdown for tests."""
3035+
import tempfile
3036+
30353037
import ray
30363038

3037-
ray.init(
3038-
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()
3039+
with tempfile.TemporaryDirectory() as tmpdir:
3040+
ray.init(
3041+
ignore_reinit_error=True,
3042+
runtime_env={"working_dir": tmpdir},
3043+
)
3044+
yield ray
3045+
ray.shutdown()
30433046

30443047

30453048
# Catalog fixtures

0 commit comments

Comments
 (0)