Skip to content

Commit 0779a5b

Browse files
committed
Address edge case
1 parent d32c2a0 commit 0779a5b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/integ/test_debugger.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -746,11 +746,10 @@ def test_mxnet_with_debugger_hook_config_disabled(
746746

747747
mx.fit({"train": train_input, "test": test_input})
748748

749-
assert mx.environment.get(DEBUGGER_FLAG) == "0"
750-
751749
job_description = mx.latest_training_job.describe()
752750

753751
assert job_description.get("DebugHookConfig") is None
752+
assert job_description.get("Environment", {}).get("USE_SMDEBUG") == "0"
754753

755754

756755
def _get_rule_evaluation_statuses(job_description):

tests/unit/sagemaker/workflow/test_steps.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
patch,
2424
)
2525

26-
from sagemaker.debugger import ProfilerConfig
26+
from sagemaker.debugger import DEBUGGER_FLAG, ProfilerConfig
2727
from sagemaker.estimator import Estimator
2828
from sagemaker.tensorflow import TensorFlow
2929
from sagemaker.inputs import TrainingInput, TransformInput, CreateModelInput
@@ -275,6 +275,7 @@ def test_training_step_tensorflow(sagemaker_session):
275275
"sagemaker_distributed_dataparallel_custom_mpi_options": '""',
276276
},
277277
"ProfilerConfig": {"S3OutputPath": "s3://my-bucket/"},
278+
"Environment": {DEBUGGER_FLAG: "0"}
278279
},
279280
"CacheConfig": {"Enabled": True, "ExpireAfter": "PT1H"},
280281
}

0 commit comments

Comments
 (0)