Skip to content

Commit cdb43f3

Browse files
committed
fix: align test with logging.exception change from TRY400 fix
1 parent 2604fba commit cdb43f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_container_shell.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ def test_remove_container_logs_failure(self):
276276

277277
def test_remove_container_logs_timeout(self):
278278
with patch("subprocess.run", side_effect=subprocess.TimeoutExpired(cmd="docker", timeout=30)):
279-
with patch.object(cs_mod.logging, "error") as mock_err:
279+
with patch.object(cs_mod.logging, "exception") as mock_err:
280280
cs_mod._remove_container("test-name")
281281
mock_err.assert_called_once()
282282

0 commit comments

Comments
 (0)