We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 728456f commit e43c661Copy full SHA for e43c661
sagemaker-train/tests/integ/train/test_docker_compose_version_detection.py
@@ -22,6 +22,7 @@
22
23
import re
24
import subprocess
25
+import tempfile
26
27
import pytest
28
@@ -77,12 +78,13 @@ def _make_local_container(container_cls):
77
78
sagemaker_session is None since _get_compose_cmd_prefix doesn't use it,
79
and the Pydantic model rejects Mock objects.
80
"""
81
+ container_root = tempfile.mkdtemp(prefix="sagemaker-integ-compose-")
82
return container_cls(
83
training_job_name="integ-test-compose-detection",
84
instance_type="local",
85
instance_count=1,
86
image="test-image:latest",
- container_root="/tmp/test",
87
+ container_root=container_root,
88
input_data_config=[_make_basic_channel()],
89
environment={},
90
hyper_parameters={},
0 commit comments