Two identical DBRef objects are both equal and non-equal simultaneously

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Trivial - P5
    • 2.4
    • Affects Version/s: 2.3
    • Component/s: None
    • None
    • Environment:
      Python 2.7.3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      I'm a newb, so I'm sorry if this is expected behaviour but it seems that DBRef('foo', ObjectId('4ec71a3df4c400566400068f') is both == and != to DBRef('foo', ObjectId('4ec71a3df4c400566400068f'). Please see attached tests.

            Assignee:
            Ross Lawley
            Reporter:
            Matt Bodman
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: