mirror of
https://github.com/LisherSong/ps5-web-file-manager.git
synced 2026-10-06 07:00:28 +02:00
Tests/make_fixtures.py now patches zipfile.time so Python 3.13's zipfile.writestr no longer embeds wall-clock date_time into each entry (the module uses time.localtime(time.time())[:6] when the caller supplies a string arcname, which silently made every fixture diff on each regeneration and polluted git with thousands of unrelated byte changes). The patch fakes localtime/time to always return (1980, 1, 1, 0, 0, 0). All .zip fixtures are regenerated against the new deterministic generator and committed. notar.rar is regenerated alongside because test_rar_extract.c's main() recreates it from basic.zip at run time; including it here keeps the source fixture and the rar fixture in lock-step. Verified: 2 consecutive python3 make_fixtures.py runs produce identical md5 for all 19 .zip fixtures; full test suite stays green (69 ZIP + 14 RAR = 83 checks, 0 failures).