Details
-
Bug
-
Status: Resolved
-
P1
-
Resolution: Fixed
-
None
Description
https://ci-beam.apache.org/job/beam_PreCommit_Python_cron/3125/
https://ci-beam.apache.org/job/beam_PreCommit_Python_commit/14680/
self = <apache_beam.typehints.native_type_compatibility_test.NativeTypeCompatibilityTest testMethod=test_convert_to_beam_types>
def test_convert_to_beam_types(self):
typing_types = [
bytes,
typing.List[bytes],
typing.List[typing.Tuple[bytes, int]],
typing.Union[int, typing.List[int]]
]
beam_types = [
bytes,
typehints.List[bytes],
typehints.List[typehints.Tuple[bytes, int]],
typehints.Union[int, typehints.List[int]]
]
converted_beam_types = convert_to_beam_types(typing_types)
> self.assertEqual(converted_beam_types, beam_types)
E AssertionError: Lists differ: [<type 'str'>, List[Any], List... != [<type 'str'>, List[str], List...
E
E First differing element 1:
E List[Any]
E List[str]
E
E - [<type 'str'>, List[Any], List[Tuple[str, int]], Union[List[int], int]]
E ? ^^^
E
E + [<type 'str'>, List[str], List[Tuple[str, int]], Union[List[int], int]]
E ? ^^^
apache_beam/typehints/native_type_compatibility_test.py:214: AssertionError