Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-6984 Python 3.7 Support
  3. BEAM-6985

TypeHints Py3 Error: Native type compatibility tests fail on Python 3.7+

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.14.0
    • Component/s: sdk-py-core
    • Labels:
      None

      Description

      The following tests are failing:

      • test_convert_nested_to_beam_type (apache_beam.typehints.native_type_compatibility_test.NativeTypeCompatibilityTest)
      • test_convert_to_beam_type (apache_beam.typehints.native_type_compatibility_test.NativeTypeCompatibilityTest)
      • test_convert_to_beam_types (apache_beam.typehints.native_type_compatibility_test.NativeTypeCompatibilityTest)

      With similar errors, where `typing.<Type> != <Type>`. eg:

       FAIL: test_convert_to_beam_type (apache_beam.typehints.native_type_compatibility_test.NativeTypeCompatibilityTest)
       ----------------------------------------------------------------------
       Traceback (most recent call last):
       File "/home/jenkins/jenkins-slave/workspace/beam_PreCommit_Python_Commit/src/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/apache_beam/typehints/native_type_compatibility_test.py", line 79, in test_convert_to_beam_type
       beam_type, description)
       AssertionError: typing.Dict[bytes, int] != Dict[bytes, int] : simple dict
      

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                nikenano niklas Hansson
                Reporter:
                RobbeSneyders Robbe
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 6h
                  6h