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

[jira] [Created] (BEAM-5622) Several tests fail on Python 3 with: Runtime type violation detected

Valentyn Tymofieiev created BEAM-5622:
-----------------------------------------

             Summary: 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


======================================================================
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)