[
https://issues.apache.org/jira/browse/BEAM-5621?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16636375#comment-16636375
]
Valentyn Tymofieiev commented on BEAM-5621:
-------------------------------------------
A few other examples:
======================================================================
ERROR: test_target_duration (apache_beam.transforms.util_test.BatchElementsTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/usr/local/google/home/valentyn/projects/beam/clean_head/beam/sdks/python/apache_beam/transforms/util_test.py",
line 103, in test_target_duration
target_batch_overhead=None, target_batch_duration_secs=10, clock=clock)
File
"/usr/local/google/home/valentyn/projects/beam/clean_head/beam/sdks/python/apache_beam/transforms/util.py",
line 226, in __init__
if max(0, target_batch_overhead, target_batch_duration_secs) == 0:
TypeError: unorderable types: NoneType() > int()
======================================================================
ERROR: test_target_overhead (apache_beam.transforms.util_test.BatchElementsTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/usr/local/google/home/valentyn/projects/beam/clean_head/beam/sdks/python/apache_beam/transforms/util_test.py",
line 117, in test_target_overhead
target_batch_overhead=.05, target_batch_duration_secs=None, clock=clock)
File
"/usr/local/google/home/valentyn/projects/beam/clean_head/beam/sdks/python/apache_beam/transforms/util.py",
line 226, in __init__
if max(0, target_batch_overhead, target_batch_duration_secs) == 0:
TypeError: unorderable types: NoneType() > float()
======================================================================
ERROR: test_reshuffle_window_fn_preserved
(apache_beam.transforms.util_test.ReshuffleTest)
----------------------------------------------------------------------
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 115, in _equal
sorted_expected = sorted(expected)
TypeError: unorderable types: list() < InAnyOrder()
> Several tests fail on Python 3 with TypeError: unorderable types: str() <
> int()
> -------------------------------------------------------------------------------
>
> Key: BEAM-5621
> URL: https://issues.apache.org/jira/browse/BEAM-5621
> Project: Beam
> Issue Type: Sub-task
> Components: sdk-py-core
> Reporter: Valentyn Tymofieiev
> Priority: Major
>
> ======================================================================
> ERROR: test_remove_duplicates
> (apache_beam.transforms.ptransform_test.PTransformTest)
> ----------------------------------------------------------------------
> 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 115, in _equal
> sorted_expected = sorted(expected)
> TypeError: unorderable types: str() < int()
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)