docs/testing.md: Python 3.12+, as make_game.py requires (DOC-TESTING-PYTHON-MIN) #1471

Merged
LouisRiverstone merged 1 commit from upstream-pr/1471 into main 2026-11-25 21:24:50 +00:00
LouisRiverstone commented 2026-11-25 00:56:54 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by LouisRiverstone on 2026-11-25T00:56:54Z.


Claimed in the coordination issue as: DOC-TESTING-PYTHON-MIN (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7149041501)

What and why

docs/testing.md gives a lower Python minimum than the code accepts:

  • "What you need" (line 16) says Python 3.11+.
  • The troubleshooting row for the dict | None annotation error (line 759) says "Use Python 3.11+".

make_game.py requires 3.12. It exits with "Python 3.12 or newer is needed" at make_game.py:66, and its preflight lists the same requirement at :859. The README says 3.12+, and every CI job uses 3.12. So a tester who follows this page and installs 3.11 can't run make_game.py, and make_game.py's own tests fail.

Both lines now say 3.12+. The note that scripts/run_gpu_tests.py on its own runs on 3.10 or newer stays.

Tested

  • I ran tests/test_make_game*.py with CPython 3.11 on Windows 11, on current main. Seven files fail, and the failures come from that version check: AssertionError: 1 != 0 : ERROR: Python 3.12 or newer is needed. On 3.14 they pass.
  • tests/test_docs_*.py (12 files): all OK. git diff --check is clean.

GPUs tested: n/a

AI-assisted: yes (Claude Code)

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (n/a: documentation only)
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5483025059 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1471). Originally posted by [LouisRiverstone](https://github.com/LouisRiverstone) on 2026-11-25T00:56:54Z. --- Claimed in the coordination issue as: DOC-TESTING-PYTHON-MIN (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7149041501) ### What and why `docs/testing.md` gives a lower Python minimum than the code accepts: - "What you need" (line 16) says **Python 3.11+**. - The troubleshooting row for the `dict | None` annotation error (line 759) says "Use Python 3.11+". `make_game.py` requires 3.12. It exits with "Python 3.12 or newer is needed" at `make_game.py:66`, and its preflight lists the same requirement at `:859`. The README says 3.12+, and every CI job uses 3.12. So a tester who follows this page and installs 3.11 can't run `make_game.py`, and `make_game.py`'s own tests fail. Both lines now say 3.12+. The note that `scripts/run_gpu_tests.py` on its own runs on 3.10 or newer stays. ### Tested - I ran `tests/test_make_game*.py` with CPython 3.11 on Windows 11, on current `main`. Seven files fail, and the failures come from that version check: `AssertionError: 1 != 0 : ERROR: Python 3.12 or newer is needed`. On 3.14 they pass. - `tests/test_docs_*.py` (12 files): all OK. `git diff --check` is clean. GPUs tested: n/a AI-assisted: yes (Claude Code) ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (n/a: documentation only)
PierreEbele commented 2026-11-25 15:35:45 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by PierreEbele on 2026-11-25T15:35:45Z.


Reviewed 1f6acd893: docs-only change (docs/testing.md: Python 3.11+ -> 3.12+, plus the dict | None row's remedy). Verified without game files using real standalone CPython 3.9/3.10/3.11: make_game.py exits with "Python 3.12 or newer is needed" on 3.11 and its tests fail there (test_make_game_preflight: 5 failures, 16 errors on 3.11; OK on 3.12 on both trees), scripts/run_gpu_tests.py --help runs on 3.10 and 3.11 and fails on 3.9 with the unsupported-| TypeError the row describes, and README and all 7 CI jobs pin 3.12. tests/test_docs_design_rows.py passes on the branch, on main and on the page merged into current main. No findings.

AI-assisted review.

Recommendation: Merge

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7167085034 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1471#issuecomment-7167085034). Originally posted by [PierreEbele](https://github.com/PierreEbele) on 2026-11-25T15:35:45Z. --- Reviewed 1f6acd893: docs-only change (docs/testing.md: Python 3.11+ -> 3.12+, plus the dict | None row's remedy). Verified without game files using real standalone CPython 3.9/3.10/3.11: make_game.py exits with "Python 3.12 or newer is needed" on 3.11 and its tests fail there (test_make_game_preflight: 5 failures, 16 errors on 3.11; OK on 3.12 on both trees), scripts/run_gpu_tests.py --help runs on 3.10 and 3.11 and fails on 3.9 with the unsupported-`|` TypeError the row describes, and README and all 7 CI jobs pin 3.12. tests/test_docs_design_rows.py passes on the branch, on main and on the page merged into current main. No findings. AI-assisted review. **Recommendation:** Merge
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
ProjectLeonida/mandy!1471
No description provided.