Skip to content

Commit bd5cfda

Browse files
authored
Make ml tests portable (#36377)
1 parent bf39e48 commit bd5cfda

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sdks/python/apache_beam/ml/inference/base_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1141,7 +1141,7 @@ def test_run_inference_with_iterable_side_input(self):
11411141
accumulation_mode=trigger.AccumulationMode.DISCARDING))
11421142

11431143
test_pipeline.options.view_as(StandardOptions).streaming = True
1144-
with self.assertRaises(ValueError) as e:
1144+
with self.assertRaises(Exception) as e:
11451145
_ = (
11461146
test_pipeline
11471147
| beam.Create([1, 2, 3, 4])
@@ -1165,7 +1165,7 @@ def test_run_inference_with_iterable_side_input_multi_process_shared(self):
11651165
accumulation_mode=trigger.AccumulationMode.DISCARDING))
11661166

11671167
test_pipeline.options.view_as(StandardOptions).streaming = True
1168-
with self.assertRaises(ValueError) as e:
1168+
with self.assertRaises(Exception) as e:
11691169
_ = (
11701170
test_pipeline
11711171
| beam.Create([1, 2, 3, 4])

0 commit comments

Comments
 (0)