Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-3168

Test Failure - test_son.TestSON.test_copying on Python 3.6.0

    • Type: Icon: Task Task
    • Resolution: Gone away
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: Tests
    • Labels:
      None

      test_son.TestSON.test_copying is failing on Python 3.6.0:

       [2022/03/10 01:54:17.200] ERROR: test_copying (test_son.TestSON)
       [2022/03/10 01:54:17.200] ----------------------------------------------------------------------
       [2022/03/10 01:54:17.200] Traceback (most recent call last):
       [2022/03/10 01:54:17.200]   File "/data/mci/de3663a3adff8e04b9ae59be3fa0b734/src/test/test_son.py", line 114, in test_copying
       [2022/03/10 01:54:17.200]     simple_son1 = copy.copy(simple_son)
       [2022/03/10 01:54:17.200]   File "/opt/mongodbtoolchain/revisions/e5348beb43e147b74a40f4ca5fb05a330ea646cf/stow/python3-v2.Y8G/lib/python3.6/copy.py", line 88, in copy
       [2022/03/10 01:54:17.200]     return copier(x)
       [2022/03/10 01:54:17.200] TypeError: __copy__() takes 1 positional argument but 2 were given
      

      https://evergreen.mongodb.com/task/mongo_python_driver_tests_fips__platform~rhel70_fips_auth~auth_ssl~ssl_test_fips_standalone_f081297a8634abb77f85a8f06c552c76a51f1120_22_03_05_01_29_33

      I believe this error is caused by the SON generics change in PYTHON-3052. The only solution will be to drop support for Python <3.6.X.

      See also https://github.com/python/typing/issues/498

            Assignee:
            steve.silvester@mongodb.com Steve Silvester
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: