Skip to content

Commit f5224b2

Browse files
Fix Ruff rule B017
1 parent 2dd6cc7 commit f5224b2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tfx/extensions/google_cloud_ai_platform/bulk_inferrer/executor_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ def testDoFailedModelDeployment(self, mock_runner, mock_run_model_inference,
235235
mock_runner.create_model_for_aip_prediction_if_not_exist.return_value = True
236236

237237
bulk_inferrer = executor.Executor(self._context)
238-
with self.assertRaises(Exception):
238+
with self.assertRaises(Exception): # noqa: B017
239239
bulk_inferrer.Do(input_dict, output_dict, exec_properties)
240240

241241
mock_runner.delete_model_from_aip_if_exists.assert_called_once_with(

tfx/orchestration/experimental/core/pipeline_ops_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3803,7 +3803,7 @@ def test_orchestrate_pipelines_with_not_recoverable_error_from_MLMD(
38033803

38043804
with self._mlmd_cm as mlmd_connection_manager:
38053805
task_queue = tq.TaskQueue()
3806-
with self.assertRaises(Exception):
3806+
with self.assertRaises(Exception): # noqa: B017
38073807
pipeline_ops.orchestrate(
38083808
mlmd_connection_manager,
38093809
task_queue,

0 commit comments

Comments
 (0)