Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-14231

Python precommit failing test_schema_with_bad_field_raises_helpful_error

Details

    • Test
    • Status: Resolved
    • P2
    • Resolution: Fixed
    • None
    • 2.39.0
    • test-failures
    • None

    Description

      apache_beam.typehints.schemas_test.SchemaTest.test_schema_with_bad_field_raises_helpful_error (from py39-cloud)

      self = <apache_beam.typehints.schemas_test.SchemaTest testMethod=test_schema_with_bad_field_raises_helpful_error>

      def test_schema_with_bad_field_raises_helpful_error(self):
      schema_proto = schema_pb2.Schema(
      fields=[
      schema_pb2.Field(
      name="type_with_no_typeinfo", type=schema_pb2.FieldType())
      ])

      1. Should raise an exception referencing the problem field
        > self.assertRaisesRegex(
        ValueError,
        "type_with_no_typeinfo",
        lambda: named_tuple_from_schema(schema_proto))
        E AssertionError: ValueError not raised by <lambda>

      apache_beam/typehints/schemas_test.py:320: AssertionError

      https://ci-beam.apache.org/job/beam_PreCommit_Python_Cron/5455

      Attachments

        Activity

          People

            bhulette Brian Hulette
            kileys Kiley Sok
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h 20m
                1h 20m