[pymongocrypt] Support testing with pymongo 4

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Unknown
    • pymongocrypt-1.2
    • Affects Version/s: None
    • Component/s: pymongocrypt
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Running the pymongocrypt test suite with pymongo 4 fails with the following error:

      FAIL: test_data_key_creation (test.test_mongocrypt.TestExplicitEncryption)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/Users/shane/git/libmongocrypt/bindings/python/test/test_mongocrypt.py", line 427, in test_data_key_creation
          self.assertIsInstance(key_id, uuid.UUID)
      AssertionError: Binary(b"\n,\xb9\x12h\xecG\xab\xa1>u\xe4q'\xb6\xdb", 4) is not an instance of <class 'uuid.UUID'>
      

      Caused by PYTHON-2245

            Assignee:
            Shane Harvey
            Reporter:
            Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: