Skip to content

Commit e43c661

Browse files
committed
fix: address review comments (iteration #1)
1 parent 728456f commit e43c661

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sagemaker-train/tests/integ/train/test_docker_compose_version_detection.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
import re
2424
import subprocess
25+
import tempfile
2526

2627
import pytest
2728

@@ -77,12 +78,13 @@ def _make_local_container(container_cls):
7778
sagemaker_session is None since _get_compose_cmd_prefix doesn't use it,
7879
and the Pydantic model rejects Mock objects.
7980
"""
81+
container_root = tempfile.mkdtemp(prefix="sagemaker-integ-compose-")
8082
return container_cls(
8183
training_job_name="integ-test-compose-detection",
8284
instance_type="local",
8385
instance_count=1,
8486
image="test-image:latest",
85-
container_root="/tmp/test",
87+
container_root=container_root,
8688
input_data_config=[_make_basic_channel()],
8789
environment={},
8890
hyper_parameters={},

0 commit comments

Comments
 (0)