You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by "Juta Staes (JIRA)" <ji...@apache.org> on 2018/10/05 15:00:00 UTC

[jira] [Commented] (BEAM-5617) Several tests fail on Python 3 with failed assert: == []

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

Juta Staes commented on BEAM-5617:
----------------------------------

Hi [~tvalentyn]

I retraced this error to lines 1272:1274 from [https://github.com/apache/beam/blob/master/sdks/python/apache_beam/transforms/core.py]

If I replace these lines by 'return combined' this resolves this issue but this of course introduces other errors. Can you explain what these lines do? I can't figure out what the typed function does and how it could introduce an error.

 

Also issue [BEAM-5616] has probably the same cause as this issue

> Several tests fail on Python 3 with failed assert: <some non-empty list> == []
> ------------------------------------------------------------------------------
>
>                 Key: BEAM-5617
>                 URL: https://issues.apache.org/jira/browse/BEAM-5617
>             Project: Beam
>          Issue Type: Sub-task
>          Components: sdk-py-core
>            Reporter: Valentyn Tymofieiev
>            Assignee: Juta Staes
>            Priority: Major
>
> ======================================================================
> ERROR: test_iterable_side_input (apache_beam.transforms.sideinputs_test.SideInputsTest)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/usr/local/google/home/valentyn/projects/beam/clean_head/beam/sdks/python/apache_beam/runners/common.py", line 677, in process
>     self.do_fn_invoker.invoke_process(windowed_value)
>   File "/usr/local/google/home/valentyn/projects/beam/clean_head/beam/sdks/python/apache_beam/runners/common.py", line 414, in invoke_process
>     windowed_value, self.process_method(windowed_value.value))
>   File "/usr/local/google/home/valentyn/projects/beam/clean_head/beam/sdks/python/apache_beam/transforms/core.py", line 1068, in <lambda>
>     wrapper = lambda x: [fn(x)]
>   File "/usr/local/google/home/valentyn/projects/beam/clean_head/beam/sdks/python/apache_beam/testing/util.py", line 119, in _equal
>     'Failed assert: %r == %r' % (sorted_expected, sorted_actual))
> apache_beam.testing.util.BeamAssertException: Failed assert: [3, 4, 6, 8] == []



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)