Skip to content

Commit a83343f

Browse files
author
Jonathan Esterhazy
committed
fix integ tests failing due to breaking ExecuteUserScriptError change
1 parent 24dbe6c commit a83343f

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

tests/integ/test_chainer_train.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def test_failed_training_job(sagemaker_session, chainer_full_version):
115115

116116
with pytest.raises(ValueError) as e:
117117
chainer.fit()
118-
assert 'This failure is expected' in str(e.value)
118+
assert 'ExecuteUserScriptError' in str(e.value)
119119

120120

121121
def _run_mnist_training_job(sagemaker_session, instance_type, instance_count,

tests/integ/test_mxnet_train.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,4 +112,4 @@ def test_failed_training_job(sagemaker_session, mxnet_full_version):
112112

113113
with pytest.raises(ValueError) as e:
114114
mx.fit()
115-
assert 'This failure is expected' in str(e.value)
115+
assert 'ExecuteUserScriptError' in str(e.value)

tests/integ/test_pytorch_train.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def test_failed_training_job(sagemaker_session, pytorch_full_version):
109109

110110
with pytest.raises(ValueError) as e:
111111
pytorch.fit()
112-
assert 'This failure is expected' in str(e.value)
112+
assert 'ExecuteUserScriptError' in str(e.value)
113113

114114

115115
def _upload_training_data(pytorch):

tests/integ/test_tf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,4 +162,4 @@ def test_failed_tf_training(sagemaker_session, tf_full_version):
162162

163163
with pytest.raises(ValueError) as e:
164164
estimator.fit()
165-
assert 'This failure is expected' in str(e.value)
165+
assert 'ExecuteUserScriptError' in str(e.value)

0 commit comments

Comments
 (0)