)]}'
{
  "commit": "4b12fc80abf4152815f09e473a972e52a1fe8b51",
  "tree": "62b68c08c38582a11a35366bbb984632561f4538",
  "parents": [
    "077cb6f77798efbccd1085110e2316b01d0071b9"
  ],
  "author": {
    "name": "philwo",
    "email": "philwo@google.com",
    "time": "Mon Aug 09 00:48:15 2021 -0700"
  },
  "committer": {
    "name": "Copybara-Service",
    "email": "copybara-worker@google.com",
    "time": "Mon Aug 09 00:50:40 2021 -0700"
  },
  "message": "Fix test_source_file_does_not_override_standard_library to work with Python 3.9.\n\nOverloading the \"re\" module causes weird errors on our new Windows VM image, probably because Python itself uses it for some purpose now. I noticed this in our Bazel CI testing area, so the new image is not yet live.\n\nLet\u0027s try to use a module that\u0027s less core to Python, but still in the standard library - I picked \"mailbox\" after looking at the list of standard library modules.\n\nHere\u0027s an example log from the failing test on the new image:\n\n```\n** test_source_file_does_not_override_standard_library *************************\n[...]\nError processing line 1 of C:\\Python3\\lib\\site-packages\\protobuf-3.17.3-py3.9-nspkg.pth:\n\nFatal Python error: init_import_site: Failed to import the site module\nPython runtime state: initialized\nTraceback (most recent call last):\n  File \"C:\\Python3\\lib\\site.py\", line 169, in addpackage\n    exec(line)\n  File \"\u003cstring\u003e\", line 1, in \u003cmodule\u003e\n  File \"C:\\Python3\\lib\\importlib\\util.py\", line 2, in \u003cmodule\u003e\n    from . import abc\n  File \"C:\\Python3\\lib\\importlib\\abc.py\", line 17, in \u003cmodule\u003e\n    from typing import Protocol, runtime_checkable\n  File \"C:\\Python3\\lib\\typing.py\", line 2203, in \u003cmodule\u003e\n    Pattern \u003d _alias(stdlib_re.Pattern, 1)\nAttributeError: module \u0027re\u0027 has no attribute \u0027Pattern\u0027\n```\nPiperOrigin-RevId: 389572773\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "523534c2944b0319402debfe68ca844da09ec489",
      "old_mode": 33261,
      "old_path": "src/test/shell/bazel/python_version_test.sh",
      "new_id": "260b2ebd13d2d7cee8f9fe52cde9ba949a613086",
      "new_mode": 33261,
      "new_path": "src/test/shell/bazel/python_version_test.sh"
    }
  ]
}
