Skip to content

Commit fce6843

Browse files
Update sdks/python/apache_beam/transforms/core_test.py
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 0871e8c commit fce6843

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

sdks/python/apache_beam/transforms/core_test.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,8 +346,7 @@ def test_optional_type_for_field(self):
346346
row_type.RowTypeConstraint.from_fields([('a', typing.Optional[int])]))
347347

348348
def test_none_type_for_field_raises_error(self):
349-
with self.assertRaisesRegex(TypeError,
350-
"('No types found for field %s', 'a')"):
349+
with self.assertRaisesRegex(TypeError, "No types found for field a"):
351350
beam.Create([beam.Row(a=None), beam.Row(a=None)]).infer_output_type(None)
352351

353352

0 commit comments

Comments
 (0)