Uploaded image for project: 'Motor'
  1. Motor
  2. MOTOR-770

Test failure - test_exhaust

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

      test_exhaust is failing with PyMongo 3.12

      FAIL [0.313s]: test_exhaust (test.asyncio_tests.test_asyncio_cursor.TestAsyncIOCursor)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/Users/shane/git/motor/test/asyncio_tests/__init__.py", line 48, in __call__
          result = self.orig_method()
        File "/Users/shane/git/motor/test/asyncio_tests/__init__.py", line 213, in wrapped
          self.loop.run_until_complete(task)
        File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
          return future.result()
        File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/tasks.py", line 476, in wait_for
          return fut.result()
        File "/Users/shane/git/motor/test/asyncio_tests/test_asyncio_cursor.py", line 481, in test_exhaust
          self.assertTrue(sock.closed)
      AssertionError: False is not true
      

      It passes with PyMongo 3.11 so something must have changed.

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

              Created:
              Updated:
              Resolved: