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

Update watch helpers for PyMongo 3.8 try_next api

    • Type: Icon: Task Task
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      PYTHON-1662 added the try_next method and alive property to change stream cursors. We need to update motor to account for this:

      FAIL: test_change_stream_attrs (tornado_tests.test_motor_core.MotorCoreTest)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/Users/shane/git/motor/venv3.7/lib/python3.7/site-packages/tornado/testing.py", line 98, in __call__
          result = self.orig_method(*args, **kwargs)
        File "/Users/shane/git/motor/test/test_environment.py", line 261, in wrap
          return f(*args, **kwargs)
        File "/Users/shane/git/motor/test/test_environment.py", line 261, in wrap
          return f(*args, **kwargs)
        File "/Users/shane/git/motor/test/tornado_tests/test_motor_core.py", line 125, in test_change_stream_attrs
          attrs(self.cx.test.test.watch()) - motor_only)
      AssertionError: Items in the first set but not the second:
      'alive'
      'try_next'
      

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

              Created:
              Updated:
              Resolved: