File tree 2 files changed +19
-2
lines changed
tests/unit/sagemaker/cli/compatibility/v2/modifiers
2 files changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -18,5 +18,12 @@ phases:
18
18
- start_time=`date +%s`
19
19
- AWS_ACCESS_KEY_ID= AWS_SECRET_ACCESS_KEY= AWS_SESSION_TOKEN=
20
20
AWS_CONTAINER_CREDENTIALS_RELATIVE_URI= AWS_DEFAULT_REGION=
21
- tox -e py27,py36,py37 --parallel all -- tests/unit
22
- - ./ci-scripts/displaytime.sh 'py27,py36,py37 unit' $start_time
21
+ tox -e py36,py37 --parallel all -- tests/unit
22
+ - ./ci-scripts/displaytime.sh 'py36,py37 unit' $start_time
23
+
24
+ # Remove once https://github.com/aws/sagemaker-python-sdk/issues/1461 is addressed.
25
+ - start_time=`date +%s`
26
+ - AWS_ACCESS_KEY_ID= AWS_SECRET_ACCESS_KEY= AWS_SESSION_TOKEN=
27
+ AWS_CONTAINER_CREDENTIALS_RELATIVE_URI= AWS_DEFAULT_REGION=
28
+ IGNORE_COVERAGE=- tox -e py27 --parallel all -- tests/unit
29
+ - ./ci-scripts/displaytime.sh 'py27 unit' $start_time
Original file line number Diff line number Diff line change 12
12
# language governing permissions and limitations under the License.
13
13
from __future__ import absolute_import
14
14
15
+ import sys
16
+
15
17
import pasta
18
+ import pytest
16
19
17
20
from sagemaker .cli .compatibility .v2 .modifiers import tf_legacy_mode
18
21
19
22
23
+ @pytest .fixture (autouse = True )
24
+ def skip_if_py2 ():
25
+ # Remove once https://github.com/aws/sagemaker-python-sdk/issues/1461 is addressed.
26
+ if sys .version_info .major < 3 :
27
+ pytest .skip ("v2 migration script doesn't support Python 2." )
28
+
29
+
20
30
def test_node_should_be_modified_tf_constructor_legacy_mode ():
21
31
tf_legacy_mode_constructors = (
22
32
"TensorFlow(script_mode=False)" ,
You can’t perform that action at this time.
0 commit comments