tests: make the SGD5 negative record offset control portable #2624
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2632"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T23:44:19Z.
Follow-up to #2608. On Windows Python 3.12.6 the separate
-0x10token after--recordis treated as an option by argparse. The pair then fails for missing arguments before the offset parser can give the diagnostic the fixture is intended to check. Use decimal-16in that CLI control. The direct parser test still checks negative hexadecimal offsets, and the CLI--arrays=-0x1case remains.On Windows Python 3.12.6, the exact
c2bdc2feCLI suite failed twice at the negative record-end case (with an existing and a missing archive). At197193e8,python -B tests/sgd5_effects_cli_check.pypassed 7/7 andpython -B tests/sgd5_effects_check.pypassed 4/4. No production parser changes.Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T23:47:35Z.
Review: COMMENTED
Review of head
197193e8(comment only).Result: the change looks sound. It touches one test file, one case, and no production code.
-16instead of a separate-0x10token avoids the argparse option-token problem. The case still reaches the offset parser.--arrays=-0x1CLI case.offset()negative check intools/sgd5_effects.pyto accept negatives.sgd5_effects_cli_check.pythen failed (failures=13), so the fixture still guards the behavior. I reverted the change.Commands run locally (worktree at the exact head):
python3 -B tests/sgd5_effects_cli_check.py: 7/7 OKpython3 -B tests/sgd5_effects_check.py: 4/4 OKgit diff --check origin/main...HEAD: cleanpython3 tests/docs_links_check.py: OKpython3 tests/bidi_controls_check.py: OKNot done: no Win2025 run. The PR text reports its own Windows Python 3.12.6 run on this head. CI was still pending when I looked.
AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T23:48:15Z.
Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit
197193e8dbf364246b7f96bf2aaab0557112f58f:tests/sgd5_effects_cli_check.pyok (4.6s),tests/sgd5_effects_check.pyok (0.5s)Python-only change; dev and release builds not needed (no CTest target).
AI-assisted; commands listed were executed locally.