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

json_util._HAS_OBJECT_PAIRS_HOOK check is too simplistic

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

      We currently set _HAS_OBJECT_PAIRS_HOOK to True if we can import simplejson. That's not good enough. We also need to check the version of simplejson to ensure it actually supports object_pairs_hook.

      This problem was discovered with the Evergreen nightly builds using machines with ancient versions of simplejson.

            Assignee:
            bernie@mongodb.com Bernie Hackett
            Reporter:
            bernie@mongodb.com Bernie Hackett
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: