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

Test Failure - test_iteration on PyPy 3.8+

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 4.4
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      This test is failing on 3.8.15 PyPy 7.3.10:

      FAIL: test_iteration (test_client.ClientUnitTest)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/home/runner/work/mongo-python-driver/mongo-python-driver/test/test_client.py", line 226, in test_iteration
          for _ in client:  # type: ignore[misc] # error: "None" not callable  [misc]
      TypeError: 'MongoClient' object is not iterable
      
      During handling of the above exception, another exception occurred:
      
      Traceback (most recent call last):
        File "/home/runner/work/mongo-python-driver/mongo-python-driver/test/test_client.py", line 227, in test_iteration
          break
      AssertionError: "'NoneType' object is not callable" does not match "'MongoClient' object is not iterable"
      

      https://github.com/ShaneHarvey/mongo-python-driver/actions/runs/3735474178/jobs/6338757772

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

              Created:
              Updated:
              Resolved: