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

json_util._HAS_OBJECT_PAIRS_HOOK check is too simplistic

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6
    • Component/s: None
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: