Skip to content

Commit 6aee919

Browse files
philschmidclaytonparnell
authored andcommitted
fix test
1 parent eb0f740 commit 6aee919

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/integ/test_huggingface_torch_distributed.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414

1515
import os
1616
from sagemaker.huggingface import HuggingFace
17-
from tests.integ import timeout
18-
from tests.integ import DATA_DIR, TRAINING_DEFAULT_TIMEOUT_MINUTES
17+
from tests.integ import DATA_DIR, TRAINING_DEFAULT_TIMEOUT_MINUTES, timeout
1918

2019

2120
def test_huggingface_torch_distributed_g5_glue(
@@ -24,7 +23,7 @@ def test_huggingface_torch_distributed_g5_glue(
2423
huggingface_training_pytorch_latest_version,
2524
huggingface_pytorch_latest_training_py_version,
2625
):
27-
with timeout(minutes=TRAINING_DEFAULT_TIMEOUT_MINUTES):
26+
with timeout.timeout(minutes=TRAINING_DEFAULT_TIMEOUT_MINUTES):
2827
data_path = os.path.join(DATA_DIR, "huggingface")
2928
estimator = HuggingFace(
3029
py_version=huggingface_pytorch_latest_training_py_version,

0 commit comments

Comments
 (0)