You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Udi Meiri (Jira)" <ji...@apache.org> on 2020/08/19 22:14:00 UTC

[jira] [Commented] (BEAM-10766) NativeTypeCompatibilityTest.test_convert_to_beam_types flake

    [ https://issues.apache.org/jira/browse/BEAM-10766?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17180854#comment-17180854 ] 

Udi Meiri commented on BEAM-10766:
----------------------------------

Interesting, so it's not Cython related.

> NativeTypeCompatibilityTest.test_convert_to_beam_types flake
> ------------------------------------------------------------
>
>                 Key: BEAM-10766
>                 URL: https://issues.apache.org/jira/browse/BEAM-10766
>             Project: Beam
>          Issue Type: Bug
>          Components: test-failures
>            Reporter: Kyle Weaver
>            Assignee: Udi Meiri
>            Priority: P1
>              Labels: flaky-test
>
> [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



--
This message was sent by Atlassian Jira
(v8.3.4#803005)