Skip to content

Commit cb58c44

Browse files
pintaoz-awspintaoz
and
pintaoz
authored
Skip tests with deprecated instance type (#5077)
Co-authored-by: pintaoz <[email protected]>
1 parent fd45957 commit cb58c44

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tests/integ/test_horovod.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,8 @@ def test_hvd_gpu(
6262
tmpdir,
6363
**kwargs,
6464
):
65-
if (
66-
Version(tensorflow_training_latest_version) >= Version("2.12")
67-
and kwargs["instance_type"] == "ml.p2.xlarge"
68-
):
69-
pytest.skip("P2 instances have been deprecated for sagemaker jobs starting TensorFlow 2.12")
65+
if kwargs["instance_type"] == "ml.p2.xlarge":
66+
pytest.skip("Instance type ml.p2.xlarge has been deprecated")
7067
if Version(tensorflow_training_latest_version) >= Version("2.13"):
7168
pytest.skip("Horovod is deprecated in TensorFlow 2.13 and above")
7269

tests/integ/test_horovod_mx.py

+3
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ def test_hvd_gpu(
5858
tmpdir,
5959
**kwargs,
6060
):
61+
if kwargs["instance_type"] == "ml.p2.xlarge":
62+
pytest.skip("Instance type ml.p2.xlarge has been deprecated")
63+
6164
_create_and_fit_estimator(
6265
mxnet_training_latest_version,
6366
mxnet_training_latest_py_version,

0 commit comments

Comments
 (0)