Skip to content

Commit fd0c1b7

Browse files
committed
fix error
1 parent d7ba27b commit fd0c1b7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/integ/test_tuner.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212
# language governing permissions and limitations under the License.
1313
from __future__ import absolute_import
1414

15-
from distutils.version import Version
1615
import json
1716
import os
1817
import time
1918

2019
import numpy as np
2120
import pytest
2221
from botocore.exceptions import ClientError
22+
from packaging.version import Version
2323

2424
import tests.integ
2525
from sagemaker import KMeans, LDA, RandomCutForest, image_uris
@@ -741,6 +741,11 @@ def test_tuning_tf_vpc_multi(
741741
tensorflow_training_latest_py_version,
742742
):
743743
"""Test Tensorflow multi-instance using the same VpcConfig for training and inference"""
744+
if Version(tensorflow_training_latest_version) >= Version("2.16"):
745+
pytest.skip(
746+
"This test is failing in TensorFlow 2.16 beacuse of an upstream bug: "
747+
"https://github.com/tensorflow/io/issues/2039"
748+
)
744749
instance_type = cpu_instance_type
745750
instance_count = 2
746751

0 commit comments

Comments
 (0)