)]}'
{
  "commit": "e5ed2ad9be8e0014a3bf4dc9f89c4ad2695500cd",
  "tree": "8ad3ea54a1dfe53eec40758860634c82c28c7e1b",
  "parents": [
    "ee1da7ec8e939a998d5ecf2c749d45eb8f7714e4"
  ],
  "author": {
    "name": "Danny Lin",
    "email": "danny0838@gmail.com",
    "time": "Mon Aug 24 16:54:55 2026"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Mon Aug 24 16:54:55 2026"
  },
  "message": "gh-152190: Fix memory checking failure in `test_zipfile64.py` (GH-152203)\n\n* gh-152190: Fix memory checking failure in `test_strip_removed_large_file_with_dd_no_sig`\n\nRemove the overly restrictive `allowed_memory` override (200 KiB) in\n`test_strip_removed_large_file_with_dd_no_sig` to prevent a memory\nchecking failure.\n\n* gh-152190: Revise comment about the empirical memory threshold\n\n* gh-152190: Improve memory checking accuracy for `test_zipfile64`\n\nIntroduce the `assert_memory_usage` context manager to narrow the scope\nof tracemalloc tracking down exclusively to the file-repacking phase.\n\nThis prevents previous file-writing side effects from interfering with\nthe baseline, improves tracing accuracy, and eliminates redundant inner\nsub-function wrappers.\n\n* gh-152190: Improve coding style and docstrings\n\n* gh-152190: Remove unneeded comments and checks\n\nRemove redundant \"TESTFN2\" disk space warnings from TestRepack, as\nthese tests exclusively use TemporaryFile().\n\nAdditionally, remove the repetitive `self.assertFalse(f.closed)` checks\nfrom `TestRepack` methods since it\u0027s already verified in\n`TestsWithSourceFile`.\n\n* gh-152190: Further optimize tests and tidy code\n\nRename `TestRepack` to `TestRepacker` to better reflect its coverage of\n`zipfile._Repacker`.\n\nMove heavy text chunk generation and common constants from `setUp`\nto `setUpClass` to ensure single initialization across tests.\n\nClean up repetitive local definitions of filenames and lorem text by\npromoting them to class properties.\n\nReduce the test file size from 8 GiB to 4.1 GiB, which is large enough\nto trigger ZIP64 extension and sufficient for the testing purpose.\n\n---------\n\nCo-authored-by: Zachary Ware \u003czach@python.org\u003e",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "7d802d59849ce1feefcb7271cd601484699c1e6d",
      "old_mode": 33188,
      "old_path": "Lib/test/test_zipfile64.py",
      "new_id": "e13f064f2ac4fd45b20c97dd2f59d942481d9496",
      "new_mode": 33188,
      "new_path": "Lib/test/test_zipfile64.py"
    }
  ]
}
