RawBatchCursor should raise StopIteration on receiving an empty batch instead of returning empty bytes

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Unknown
    • 3.12, 4.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      If db.test is an empty collection, we see the following behavior:

      cursor = db.test.find_raw_batches()
      assert next(cursor) == b""
      

      Instead of returning empty bytes, this should instead raise StopIteration.

              Assignee:
              Prashant Mital (Inactive)
              Reporter:
              Prashant Mital (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: