[ 
https://issues.apache.org/jira/browse/BEAM-5622?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ruoyun Huang reassigned BEAM-5622:
----------------------------------

    Assignee: Ruoyun Huang

> Several tests fail on Python 3 with: Runtime type violation detected
> --------------------------------------------------------------------
>
>                 Key: BEAM-5622
>                 URL: https://issues.apache.org/jira/browse/BEAM-5622
>             Project: Beam
>          Issue Type: Sub-task
>          Components: sdk-py-core
>            Reporter: Valentyn Tymofieiev
>            Assignee: Ruoyun Huang
>            Priority: Major
>
> ======================================================================
> 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'>."



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

Reply via email to