Details
-
Sub-task
-
Status: Resolved
-
P2
-
Resolution: Fixed
-
None
-
None
Description
======================================================================
FAIL: test_combine_runtime_type_check_violation_using_decorators (apache_beam.transforms.ptransform_test.PTransformTypeCheckTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/google/home/valentyn/projects/beam/clean_head/beam/sdks/python/apache_beam/transforms/ptransform_test.py", line 1543, in test_combine_runtime_type_check_violation_using_decorators
"Runtime type violation detected within "
File "/usr/local/google/home/valentyn/projects/beam/clean_head/beam/sdks/python/apache_beam/transforms/ptransform_test.py", line 911, in assertStartswith
'"%s" does not start with "%s"' % (msg, prefix))
AssertionError: False is not true : "Runtime type violation detected within Mul/CombinePerKey: Type-hint for return type violated. Expected an instance of <class 'int'>, instead found 25252525252525252525252525252525252525252525252525, an instance of <class 'str'>." does not start with "Runtime type violation detected within Mul/CombinePerKey: Type-hint for return type violated. Expected an instance of <type 'int'>, instead found"
======================================================================
FAIL: test_combine_runtime_type_check_violation_using_methods (apache_beam.transforms.ptransform_test.PTransformTypeCheckTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/google/home/valentyn/projects/beam/clean_head/beam/sdks/python/apache_beam/transforms/ptransform_test.py", line 1597, in test_combine_runtime_type_check_violation_using_methods
"Runtime type violation detected within "
File "/usr/local/google/home/valentyn/projects/beam/clean_head/beam/sdks/python/apache_beam/transforms/ptransform_test.py", line 911, in assertStartswith
'"%s" does not start with "%s"' % (msg, prefix))
AssertionError: False is not true : "Runtime type violation detected within ParDo(SortJoin/KeyWithVoid): Type-hint for argument: 'v' violated. Expected an instance of <class 'str'>, instead found 0, an instance of <class 'int'>. [while running 'SortJoin/KeyWithVoid']" does not start with "Runtime type violation detected within ParDo(SortJoin/KeyWithVoid): Type-hint for argument: 'v' violated. Expected an instance of <type 'str'>, instead found 0, an instance of <type 'int'>."