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

Fix test_collection.TestCollection.test_create for MongoDB 3.7

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.1
    • Component/s: None
    • Security Level: Public
    • Labels:
      None

      Description

      For some reason this test fails against a sharded MongoDB 3.7 deployment. It seems mongos ignores the impossible write concern. This could also be a bug in the server.

       [2018/02/12 17:07:40.890] ======================================================================
       [2018/02/12 17:07:40.890] FAIL [0.031s]: test_create (test_collection.TestCollection)
       [2018/02/12 17:07:40.890] ----------------------------------------------------------------------
       [2018/02/12 17:07:40.890] Traceback (most recent call last):
       [2018/02/12 17:07:40.890]   File "/data/mci/ed576f18200cc91000337e52fdf4b32f/src/test/__init__.py", line 365, in wrap
       [2018/02/12 17:07:40.890]     return f(*args, **kwargs)
       [2018/02/12 17:07:40.890]   File "/data/mci/ed576f18200cc91000337e52fdf4b32f/src/test/test_collection.py", line 155, in test_create
       [2018/02/12 17:07:40.890]     create=True)
       [2018/02/12 17:07:40.890] AssertionError: OperationFailure not raised
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              behackett Bernie Hackett
              Reporter:
              behackett Bernie Hackett
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: