Equality comparisons on WriteConcern instances are incorrect

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor - P4
    • 3.8
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      We do not check the type of other in WriteConcern.__eq__ which can result in an AttributeError when other does not have the expected attributes. We should follow the same pattern as we do in ReadConcern.__eq__ instead.

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

                Created:
                Updated:
                Resolved: