Skip to content

Commit 4f0bbba

Browse files
author
Ryan Tanaka
committed
fix: removed unused patch on builtins.open in test_create_with_byoc which was not being used and causing unintended patches to open calls elsewhere
1 parent f2ae556 commit 4f0bbba

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sagemaker-train/tests/unit/ai_registry/test_evaluator.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,7 @@ def test_create_with_byoc(self, mock_air_hub, mock_boto3):
6161
RESPONSE_KEY_LAST_MODIFIED_TIME: "2024-01-01"
6262
}
6363

64-
with patch("builtins.open", MagicMock()), \
65-
patch("zipfile.ZipFile") as mock_zip, \
64+
with patch("zipfile.ZipFile") as mock_zip, \
6665
patch("os.path.splitext", return_value=("function", ".py")), \
6766
patch("os.path.basename", return_value="function.py"):
6867

0 commit comments

Comments
 (0)